<<Navigation: 执行失败 ['AllContext' object has no attribute 'values'] (see also the log)>>

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");

TCPL/B.01.7_Error_Functions (2008-02-23 15:34:09由localhost编辑)

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