#include <string.h> char *strerror(int error);
This function returns a string that describes the error.
A pointer to a static string that should not be modified or free'd.
ANSI, POSIX
if (f=fopen("foo", "r") == 0) printf("Error! %s: %s\n", "foo", strerror(errno));
Go to the first, previous, next, last section, table of contents.