Use exit define

This commit is contained in:
Isaac Shoebottom 2023-12-04 20:55:45 -04:00
parent 136a4fe960
commit bea609e01c

View File

@ -20,7 +20,7 @@ int main(int argc, char *argv[]) {
char *png_buffer = load_file(get_fd(path));
if (!is_png(png_buffer)) {
printf("It's not a PNG file\n");
exit(1);
exit(EXIT_FAILURE);
} else {
printf("It's a PNG file\n");
}