Use standard library's exit() code constants.

This commit is contained in:
Sven Michael Klose
2024-07-15 17:54:43 +02:00
parent 816bcabe5a
commit 677cd8ff4e

View File

@@ -1,5 +1,3 @@
// 2024-02-14 Sven Michael Klose <pixel@hugbox.org>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@@ -8,7 +6,7 @@ void
error (void) error (void)
{ {
printf ("strtok() test failed!\n"); printf ("strtok() test failed!\n");
exit (-1); exit (EXIT_FAILURE);
} }
void void
@@ -39,5 +37,5 @@ main (void)
test (s3); test (s3);
test (s4); test (s4);
return 0; return EXIT_SUCCESS;
} }