get_extension - Returns a pointer to the extension of a filename. Allegro game programming library.
Contents
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'\n",
get_extension(name));
Name
get_extension - Returns a pointer to the extension of a filename. Allegro game programming library.
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 filename or it doesn't have extension.
See Also
get_filename(3alleg4), put_backslash(3alleg4), replace_extension(3alleg4) Allegro version 4.4.3 get_extension(3alleg4)
Synopsis
#include<allegro.h>char*get_extension(constchar*filename);
