FLextName


Routine

int FLextName (const char Fname[], char Ext[])

Purpose

Return the extension component of a file name

Description

This routine takes a filename and returns the filename extension. The extension is the part of the last component of the path name beginning with (and including) a period. The extension for the path name "/abc/def.gh.ij" is ".ij".

Parameters

<- int FLextName
Number of characters in the output string
-> const char Fname[]
Input character string with the file name
<- char Ext[]
Output string with the extension. This string is at most FILENAME_MAX characters long including the terminating null character.

Author / revision

P. Kabal / Revision 1.8 2003/05/09

See Also

FLbaseName, FLdirName, FLpreName


Main Index libtsp