TSP (libtsp/FL) - FLpreName

## FLpreName

#### Routine

int FLpreName (const char Fname[], char Pname[])

#### Purpose

Return the last component of a file name stripped of its extension

#### Description

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

#### Parameters

<- int FLpreName
  Number of characters in the output string
-> const char Fname[]
  Input character string with the file name
<- char Pname[]
  Output string filename string without 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, FLextName

Main Index libtsp