ustrerror (3) - Linux Manuals
ustrerror: Returns a string describing errno. Allegro game programming library.
Command to display ustrerror
manual in Linux: $ man 3 ustrerror
NAME
ustrerror - Returns a string describing errno. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
const char *ustrerror(int err);
DESCRIPTION
This function returns a string that describes the error code `err', which
normally comes from the variable `errno'. Example:
PACKFILE *input_file = pack_fopen("badname", "r");
if (input_file == NULL)
allegro_message("%s\nSorry!\n", ustrerror(errno));
RETURN VALUE
Returns a pointer to a static string that should not be modified or
freed. If you make subsequent calls to ustrerror(), the string will be
overwritten.
Pages related to ustrerror
- ustr (3) - ustr string library functions
- ustr_const (3) - ustr string library constants
- ustrcat (3) - Concatenates a string to another one. Allegro game programming library.
- ustrchr (3) - Finds the first occurrence of a character in a string. Allegro game programming library.
- ustrcmp (3) - Compares two strings. Allegro game programming library.
- ustrcpy (3) - Copies a string into another one. Allegro game programming library.
- ustrdup (3) - Duplicates a string. Allegro game programming library.
- ustricmp (3) - Compares two strings ignoring case. Allegro game programming library.