|
TPCCLIB
|
Functions for editing file names. More...
#include "libtpcmisc.h"Go to the source code of this file.
Functions | |
| void | filenameRmPath (char *s) |
| int | filenameRmExtension (char *s) |
| void | filenameRmExtensions (char *s) |
| int | fnmatch (const char *fname, const char *key) |
| int | fncasematch (const char *fname, const char *key) |
| char * | filenameGetExtension (char *s) |
| Get the last extension of a filename. | |
| char * | filenameGetExtensions (char *s) |
| Get all extensions of a filename. | |
Functions for editing file names.
Definition in file filename.c.
| char * filenameGetExtension | ( | char * | s | ) |
Get the last extension of a filename.
Extension(s) in pathname are not searched for. Note that pointer points to the original string.
| s | Pointer to string; string is not edited here. |
Definition at line 139 of file filename.c.
Referenced by filenameGetExtension().
| char * filenameGetExtensions | ( | char * | s | ) |
Get all extensions of a filename.
Extension(s) in pathname are not searched for. Note that pointer points to the original string.
| s | Pointer to string; string is not edited here. |
Definition at line 164 of file filename.c.
Referenced by filenameGetExtensions().
| int filenameRmExtension | ( | char * | s | ) |
Remove the last extension from file name.
| s | Pointer to string |
Definition at line 34 of file filename.c.
Referenced by filenameRmExtension(), filenameRmExtensions(), tpcHtmlUsage(), tpcPrintBuild(), tpcPrintUsage(), and tpcProgramName().
| void filenameRmExtensions | ( | char * | s | ) |
Remove all extensions from file name.
| s | Pointer to string |
Definition at line 51 of file filename.c.
Referenced by filenameRmExtensions().
| void filenameRmPath | ( | char * | s | ) |
Remove path from file name.
| s | Pointer to string |
Definition at line 13 of file filename.c.
Referenced by filenameRmPath(), tpcHtmlUsage(), tpcPrintBuild(), tpcPrintUsage(), and tpcProgramName().
| int fncasematch | ( | const char * | fname, |
| const char * | key ) |
Case-independent check whether string fname matches string key, which may contain wildcards ? and *.
| fname | filename that is evaluated |
| key | key string which may contain wildcards '?' and '*' |
Definition at line 100 of file filename.c.
Referenced by dftFormat(), dftWrite(), fncasematch(), and rnameMatch().
| int fnmatch | ( | const char * | fname, |
| const char * | key ) |
Check if string fname matches string key, which may contain wildcards ? and *.
| fname | filename that is evaluated |
| key | key string which may contain wildcards '?' and '*' |
Definition at line 66 of file filename.c.
Referenced by fncasematch(), and fnmatch().