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