PetscErrorCode PetscGetFileFromPath(char *path,char *defname,char *name,char *fname,char mode)Not Collective
path | - A string containing "directory:directory:..." (without the quotes, of course). As a special case, if the name is a single FILE, that file is used. | |
defname | - default name | |
name | - file name to use with the directories from env | |
mode | - file mode desired (usually r for readable, w for writable, or e for executable) |
Developer Notes: Wrongly returns 1 as an error code sometimes. Maybe should have additional flag argument indicating if it found it. Most arguments likely should be const.
Level:developer
Location:src/sys/fileio/ffpath.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages