Files | Functions

File Name String Utilities
[File Utilities]

Collaboration diagram for File Name String Utilities:

Files

file  utl_file.h

Functions

char * utlFileGetPath (const char *filename)
char * utlFileGetTitle (const char *filename)
char * utlFileGetExt (const char *filename)

Function Documentation

char* utlFileGetPath ( const char *  filename  ) 

Returns the path of a file name or NULL if none if found.
The path includes the last slash '/'.

char* utlFileGetTitle ( const char *  filename  ) 

Returns the file title (only Name+Ext, no path) of a file name.
It extracts the path if any.

char* utlFileGetExt ( const char *  filename  ) 

Returns the file extension of a file name if any. Returns NULL otherwise.