Navigation(slides)

B.1.7 Error Functions

Many of the functions in the library set status indicators when error or end of file occur. These indicators may be set and tested explicitly. In addition, the integer expression errno (declared in <errno.h>) may contain an error number that gives further information about the most recent error.

void clearerr(FILE *stream)

int feof(FILE *stream)

int ferror(FILE *stream)

void perror(const char *s)

        fprintf(stderr, "%s: %s\n", s, "error message");

Navigation(siblings)

ch3n2k.com | Copyright (c) 2004-2020 czk.