Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

get_extension(3alleg4) [opendarwin man page]

get_extension(3alleg4)						  Allegro manual					    get_extension(3alleg4)

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)

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)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

tar & Grep together

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)
Discussion started by: tom123
21 Replies

2. Shell Programming and Scripting

How to get files with a specific extension

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)
Discussion started by: janavenki
9 Replies

3. Solaris

Sun's Trial Products — Try Now and Buy at 20 - 40% Off

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)
Discussion started by: Neo
4 Replies

4. Shell Programming and Scripting

Move multiple files 4rm Source to different target folders based on a series num in the file content

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)
Discussion started by: phani333
17 Replies

Featured Tech Videos