1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

freadln.c: test: use return instead of exit

This commit is contained in:
2024-04-07 18:56:49 +03:00
parent 425aae56ec
commit 2c6d56faa5

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