1ustrerror(3) Allegro manual ustrerror(3)
2
3
4
6 ustrerror - Returns a string describing errno. Allegro game programming
7 library.
8
10 #include <allegro.h>
11
12
13 const char *ustrerror(int err);
14
16 This function returns a string that describes the error code `err',
17 which normally comes from the variable `errno'. Example:
18
19 PACKFILE *input_file = pack_fopen("badname", "r");
20 if (input_file == NULL)
21 allegro_message("%s\nSorry!\n", ustrerror(errno));
22
24 Returns a pointer to a static string that should not be modified or
25 freed. If you make subsequent calls to ustrerror(), the string will be
26 overwritten.
27
28
30 uconvert(3), allegro_error(3)
31
32
33
34Allegro version 4.4.3 ustrerror(3)