FLbaseName


Routine

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

Purpose

Return the last component of a file path

Description

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 MS-DOS, the directory separator character is \.

Parameters

<- 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 Copyright (C) 1997 / Revision 1.16 1997/10/14

See Also

FLdirName, FLdefName, FLextName, FLpreName


Main Index libtsp