Returns the full path name of a filechar *sm_fi_path(char *file_name);
- A pointer to the name of the file whose path is sought.
sm_fi_pathfinds the full path name of a file. The file can be a screen or any other type of file.
sm_fi_pathreturns a pointer to a static buffer that contains the file's full path name.
Panther searches for
file_namein the current directory, then along the path given to sm_initcrt, and finally along the path defined by SMPATH.
If the file is found, the full path name is returned to the caller. Because the static buffer used to hold the full path name is shared by several functions, it should be used or copied immediately.
char *file, *path;
if ((path = sm_fi_path(file)) == NULL)
sm_femsg(0, "Unable to find file");