|
||
int find_first ( char *path, char *buf )
char *path; // file specification pattern char *buf; // character buffer to receive filename
|
|
||||||||||||||||||||||||||||
Synopsis |
#include "silver.h"
The find_first function searches the disk for a file matching the file pattern path (which is potentially wildcarded with * or ? characters), and copies the first such filename into buf . Further matches may be retrieved by using find_next .
|
|
|||||||||||||||||||||||||||
Parameters |
path is a null-terminated string, containing the file pattern. buf is the address of a character buffer, sufficiently large enough to hold a filename.
|
|
|||||||||||||||||||||||||||
Return Value |
find_first returns 0 if no matching file was found; otherwise, the following values are returned:
Further, these return values may have the following values or'ed in:
|
|
|||||||||||||||||||||||||||
See Also |
|
||||||||||||||||||||||||||||
|
|