|
-
May 21st, 1999, 04:03 AM
#1
How to use _findfirst and _findnext function
How to use _findfirst and _findnext function?
-
May 21st, 1999, 04:25 AM
#2
Re: How to use _findfirst and _findnext function
example :
struct _finddata_t c_file;
long hFile;
if ( (hFile = _findfirst("*.c", &c_file)) == -1L )
printf("No *.c files in current directory");
else
{
do
{
printf("%s\n", c_file.name);
} while ( _findnext(hFile, &c_file) == 0 )
_findclose(hFile);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|