1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-08 13:04:52 +00:00

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 <stdlib.h>
#include <string.h>
@ -8,7 +6,7 @@ void
error (void)
{
printf ("strtok() test failed!\n");
exit (-1);
exit (EXIT_FAILURE);
}
void
@ -39,5 +37,5 @@ main (void)
test (s3);
test (s4);
return 0;
return EXIT_SUCCESS;
}