Class hierarchy   Compound list   File list   Compound Members   File Members  

findfile.h File Reference

Defines

Functions


Define Documentation

#define __FIND_FILE_H


Function Documentation

int find_file(const char *base, bool allow_longer, char **match, const char *suff, ...)

Searches for files.

Parameters:
base - basename of the file
allow_longer - whether files with longer names are also matched
match - the first match will be stored here, by malloc()ing *match
suff - Variable length argument list, terminated by NULL, containing all suffices to look for

Returns:
number of matches found

example:
 char *myresult;
 if(  find_file("nhood1", true, &myresult, "i-w", "w", NULL)   > 0 )
 {
   printf("found %s\n", myresult);
   free(myresult);
 };

Function requires that either _GLUE_USE_POSIX_DIRS or _GLUE_USE_WIN_DIRS is defined.


Generated at Wed May 31 21:08:19 2000 for Rvtmod/rvglue by doxygen  written by Dimitri van Heesch, © 1997-1998