1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
<HTML>
<HEAD>
<TITLE>TSP (libtsp/FL) - FLextName</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>FLextName</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int FLextName (const char Fname[], char Ext[])
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Return the extension component of a file name
</DL>
<H4>Description</H4>
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".
<H4>Parameters</H4>
<DL>
<DT>
<- int FLextName
<DD>
Number of characters in the output string
<DT>
-> const char Fname[]
<DD>
Input character string with the file name
<DT>
<- char Ext[]
<DD>
Output string with the extension. This string is at most FILENAME_MAX
characters long not including the terminating null character.
</DL>
<H4>Author / revision</H4>
P. Kabal Copyright (C) 1995
/ Revision 1.2 1995/05/12
<H4>See Also</H4>
<A HREF="FLbaseName.html">FLbaseName</A>,
<A HREF="FLdirName.html">FLdirName</A>,
<A HREF="FLpreName.html">FLpreName</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|