get_extension3alleg4
Returns a pointer to the extension of a filename. allegro game programming library.
Usage
char *get_extension(const
char
*filename);
Overview
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));
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.
History
- Debian 13 (Trixie) to Debian 11 (Bullseye): the text shown here
- Debian 10 (Buster) to Debian 7 (Wheezy)