diff --git a/c-programming/io/freadln.c b/c-programming/io/freadln.c index 119a875..9f96e54 100644 --- a/c-programming/io/freadln.c +++ b/c-programming/io/freadln.c @@ -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); }