Returns a pointer to the extension of a filename.


char *get_extension(const char *filename);
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",
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.

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: