1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-27 05:40:17 +05:30

freadln.c: fix the STDIN input testing code

This commit is contained in:
Intel A80486DX2-66 2024-03-13 08:22:33 +03:00
parent d422049dc3
commit 4ce2d32a8a
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

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