mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-26 11:30:03 +05:30
freadln.c: fix the STDIN input testing code
This commit is contained in:
parent
d422049dc3
commit
4ce2d32a8a
@ -100,7 +100,7 @@ int main(void) {
|
|||||||
// stdin test
|
// stdin test
|
||||||
printf("Type something> ");
|
printf("Type something> ");
|
||||||
char* line;
|
char* line;
|
||||||
if (finreadln(&line, NULL) != freadln_OK) {
|
if (finreadln(&line, NULL) == freadln_ERROR) {
|
||||||
perror("freadln");
|
perror("freadln");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user