From 4ce2d32a8acb5b2a53adde301d3b2728f3119fc2 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 13 Mar 2024 08:22:33 +0300 Subject: [PATCH] freadln.c: fix the STDIN input testing code --- c-programming/io/freadln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }