mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-12-26 11:30:03 +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;
|
char* line;
|
||||||
if (finreadln(&line, NULL) == freadln_ERROR) {
|
if (finreadln(&line, NULL) == freadln_ERROR) {
|
||||||
perror("freadln");
|
perror("freadln");
|
||||||
exit(EXIT_FAILURE);
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
printf("Input string: '%s'\n", line);
|
printf("Input string: '%s'\n", line);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user