get_extension(3) - Linux man page
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'\n",
get_extension(name));