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.ghi" is ".ghi".

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 not including the terminating null character.

Author / revision

P. Kabal Copyright (C) 1995 / Revision 1.2 1995/05/12

See Also

FLbaseName, FLdirName, FLpreName


Main Index libtsp