I want to list all the files and folders in a directory in IFS. I'm using the opendir API. When I compile the code, I'm getting an error message in a variable declation used with DIR. I did some research and found out that the dirent.h file does not contain the definition of DIR. Can you direct me to a place where I can get the structure for the DIR? I am using ILE/C.
Do the following before reading the directory:
*open directory and retrieve directory handle C eval dirpath = '/QDLS' + foldername C eval diroif = diropncon C eval tablelen = -1 C call 'QHFOPNDR' C parm dirhandle C parm dirpath C parm 16 dirpathlen C parm diroif C parm tablespace C parm tablelen C parm errords
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Dig Deeper on iSeries ILE programming
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.