From: costa Newsgroups: comp.os.msdos.djgpp Subject: dir problems Date: 15 Mar 2003 15:55:28 GMT Organization: Your Company Lines: 17 Message-ID: NNTP-Posting-Host: aputeaux-115-1-8-51.abo.wanadoo.fr X-Trace: news-reader10.wanadoo.fr 1047743728 13530 81.49.92.51 (15 Mar 2003 15:55:28 GMT) X-Complaints-To: abuse AT wanadoo DOT fr NNTP-Posting-Date: 15 Mar 2003 15:55:28 GMT User-Agent: Xnews/5.04.25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Is there a way to duplicate a value given back by readdir ? I want to store them in a struct wich is : typedef struct FileList { char *FileName; char *FileType; int pos; struct FileList *pNext; }FileList; any pointers would be helpfull. Thanks costa