mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-26 02:29:50 +05:30
freadln.c: test: use return
instead of exit
This commit is contained in:
parent
425aae56ec
commit
2c6d56faa5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user