|
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. |