.\" Generated by the Allegro makedoc utility .TH get_extension 3alleg4 "version 4.4.3" "Allegro" "Allegro manual" .SH NAME get_extension \- Returns a pointer to the extension of a filename. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B char *get_extension(const char *filename); .SH DESCRIPTION Finds out the extension of the filename (with or without path information). Example: .nf get_executable_name(name, sizeof(name)); allegro_message("The binary has the extension `%s'\\n", get_extension(name)); .fi .SH "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. .SH SEE ALSO .BR get_filename (3alleg4), .BR put_backslash (3alleg4), .BR replace_extension (3alleg4)