1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-26 11:30:03 +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
printf("Type something> ");
char* line;
if (finreadln(&line, NULL) != freadln_OK) {
if (finreadln(&line, NULL) == freadln_ERROR) {
perror("freadln");
exit(EXIT_FAILURE);
}