int FLbaseName (const char Fname[], char Bname[])


Return the last component of a file path


This routine takes a file path specification and returns the rightmost component. Components are separated by "/" characters. If no "/" character appears in the path, the input path name is returned. For Windows, the directory separator character is "\".


<- int FLbaseName
Number of characters in the output string
-> const char Fname[]
Input character string with the path name
<- char Bname[]
Output string with the last path name component. This string is at most FILENAME_MAX characters long including the terminating null character.

Author / revision

P. Kabal / Revision 1.20 2003/05/09

See Also

FLdirName, FLdefName, FLextName, FLpreName

Main Index libtsp