1
0
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:
2024-03-13 08:22:33 +03:00
parent d422049dc3
commit 4ce2d32a8a

View File

@@ -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);
}