1get_extension(3)                Allegro manual                get_extension(3)
2
3
4

NAME

6       get_extension - Returns a pointer to the extension of a filename. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       char *get_extension(const char *filename);
14

DESCRIPTION

16       Finds out the extension of the filename (with or without path  informa‐
17       tion). Example:
18
19          get_executable_name(name, sizeof(name));
20          allegro_message("The binary has the extension `%s'\n",
21                          get_extension(name));
22

RETURN VALUE

24       Returns  a  pointer  to  the  portion of `filename' where the extension
25       starts, or a pointer to the trailing null  character  if  there  is  no
26       filename or it doesn't have extension.
27
28

SEE ALSO

30       get_filename(3), put_backslash(3), replace_extension(3)
31
32
33
34Allegro                          version 4.2.2                get_extension(3)
Impressum