ferror
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | ferror [2017/07/06 03:16] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis: | ||
+ | $[[ferror]](<< | ||
+ | |||
+ | ======Technical: | ||
+ | This function returns non-zero if an error has occurred on the | ||
+ | //file descriptor// | ||
+ | and [[readb]] functions clear the //file descriptor// | ||
+ | |||
+ | When the [[read]] or [[readb]] function return the empty string, that | ||
+ | is caused either by an error, an eof, or a blank line. This function | ||
+ | will tell you if it was an error. | ||
+ | if it was an end of file. | ||
+ | |||
+ | The //file descriptor// | ||
+ | the [[open]] function. | ||
+ | |||
+ | ======Returns: | ||
+ | |-1 | ||
+ | | 0 |no error has occurred since the last [[read]]| | ||
+ | | 1 |an error has occurred since the last [[read]]| |
ferror.txt · Last modified: 2017/07/06 03:16 by 127.0.0.1