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

freadln.c: test: use return instead of exit

This commit is contained in:
Intel A80486DX2-66 2024-04-07 18:56:49 +03:00
parent 425aae56ec
commit 2c6d56faa5
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -130,7 +130,7 @@ int main(void) {
char* line;
if (finreadln(&line, NULL) == freadln_ERROR) {
perror("freadln");
exit(EXIT_FAILURE);
return EXIT_FAILURE;
}
printf("Input string: '%s'\n", line);