get_extension(3alleg4) Allegro manual get_extension(3alleg4)NAME
get_extension - Returns a pointer to the extension of a filename. Allegro game programming library.
char *get_extension(const char *filename);
Finds out the extension of the filename (with or without path information). Example:
allegro_message("The binary has the extension `%s'
Returns a pointer to the portion of `filename' where the extension starts, or a pointer to the trailing null character if there is no file-
name or it doesn't have extension.
SEE ALSO get_filename(3alleg4), put_backslash(3alleg4), replace_extension(3alleg4)Allegro version 4.4.2 get_extension(3alleg4)
Check Out this Related Man Page
get_filename(3alleg4) Allegro manual get_filename(3alleg4)NAME
get_filename - Returns a pointer to the filename portion of a path. Allegro game programming library.
char *get_filename(const char *path);
Finds out the filename portion of a completely specified file path. Both `' and `/' are recognized as directory separators under DOS and
Windows. However, only `/' is recognized as directory separator under other platforms. Example:
Note that Allegro won't perform any IO operations during the verification. This means that if you have `/a/path/like/this/', which doesn't
have a filename, the function will return a pointer to the trailing null character. However, if you have `/a/path/like/this', Allegro will
return a pointer to `this', even if it is a valid directory.
Returns a pointer to the portion of `path' where the filename starts, or the beginning of `path' if no valid filename is found (eg. you are
processing a path with backslashes under Unix).
SEE ALSO get_extension(3alleg4), put_backslash(3alleg4), replace_filename(3alleg4), exmidi(3alleg4)Allegro version 4.4.2 get_filename(3alleg4)
I've got dozens of tar's with two files in each one,
live_access_log & live_error_log (one tar for each day, backups).
The probelm is i need to match a pattern in all of the archive_access_log files and output the line to a seperate file (All_access.log).
I.e. I need to get details... (21 Replies)
How do I get only the files with the .csv extension. I have a shell script something like below:
#Directory to scan for files
for FILE in * ; do
FILENAME=$FILE... (9 Replies)
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)