TSP (libtsp/FL) - FLextName

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

#### Author / revision

P. Kabal Copyright (C) 1997 / Revision 1.5 1997/10/14

#### See Also

FLbaseName, FLdirName, FLpreName

Main Index libtsp