...
Non-Compliant Code Example
In this non-compliant code example, more than one character is pushed back on the stream referenced by fptr.
| Code Block | ||
|---|---|---|
| ||
FILE* fptr = fopen(file_name, "rb");
if (fptr == NULL) {
/* Handle Error */
}
/* Read data */
ungetc('\n', fptr);
ungetc('\r', fptr);
/* Continue on */
|
...