Level 84 Level 86
Level 85

Error Handling


4 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
errno
Most of the C or even Unix function calls return -1 or NULL in case of any error and set an error code:
A value of 0
indicates that there is no error in the program.
perror()
displays the string you pass to it, followed by a colon, a space, and then the textual representation of the current errno value.
strerror()
returns a pointer to the textual representation of the current errno value.