From 2c6d56faa5dad22e75bbb55099fa026016413623 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 7 Apr 2024 18:56:49 +0300 Subject: [PATCH] freadln.c: test: use `return` instead of `exit` --- c-programming/io/freadln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-programming/io/freadln.c b/c-programming/io/freadln.c index c3daf43..304fa74 100644 --- a/c-programming/io/freadln.c +++ b/c-programming/io/freadln.c @@ -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);