get_extension(3alleg4) Allegro manual get_extension(3alleg4)NAME
get_extension - Returns a pointer to the extension of a filename. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
char *get_extension(const char *filename);
DESCRIPTION
Finds out the extension of the filename (with or without path information). Example:
get_executable_name(name, sizeof(name));
allegro_message("The binary has the extension `%s'
",
get_extension(name));
RETURN VALUE
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.
SYNOPSIS
#include <allegro.h>
char *get_filename(const char *path);
DESCRIPTION
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:
get_executable_name(name, sizeof(name));
allegro_message("Running `%s'
", get_filename(name));
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.
RETURN VALUE
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)
Hi,
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)
Hi All,
How do I get only the files with the .csv extension. I have a shell script something like below:
#!/usr/bin/
#Directory to scan for files
SCANDIR="/cmb/data/exstream/scriptslogs/";
LOGFILE="/cmb/data/exstream/scriptslogs/test.log";
cd $SCANDIR
for FILE in * ; do
FILENAME=$FILE... (9 Replies)
I think it is really great that you can try out a SunFire server for 60 days, risk free.
Has anyone here used this "Try and Buy" service?
Any reviews? (4 Replies)
Dear Experts
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)