RAD Studio
ContentsIndex
PreviousUpNext
findnext, _wfindnext

Header File 

dir.h  

Category 

Directory Control Routines 

Prototype 

int findnext(struct ffblk *ffblk ); 

int _wfindnext(struct _wffblk *ffblk ); 

Description 

Continues findfirst search. 

findnext is used to fetch subsequent files that match the pathname given in findfirst. ffblk is the same block filled in by the findfirst call. This block contains necessary information for continuing the search. One file name for each call to findnext will be returned until no more files are found in the directory matching the pathname. 

Return Value 

findnext returns 0 on successfully finding a file matching the search pathname. When no more files can be found or if there is an error in the file name 

-1 is returned  

errno is set to

ENOENT 
Path or file name not found  

_doserrno is set to one of the following values:

ENMFILE 
No more files  
ENOENT 
Path or file name not found  

Portability

 
POSIX 
Win32 
ANSI C 
ANSI C++ 
findnext  
 
+  
 
 
_wfindnext  
 
NT only  
 
 

findfirst 

findnext

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!