Use exit define
This commit is contained in:
parent
136a4fe960
commit
bea609e01c
@ -20,7 +20,7 @@ int main(int argc, char *argv[]) {
|
|||||||
char *png_buffer = load_file(get_fd(path));
|
char *png_buffer = load_file(get_fd(path));
|
||||||
if (!is_png(png_buffer)) {
|
if (!is_png(png_buffer)) {
|
||||||
printf("It's not a PNG file\n");
|
printf("It's not a PNG file\n");
|
||||||
exit(1);
|
exit(EXIT_FAILURE);
|
||||||
} else {
|
} else {
|
||||||
printf("It's a PNG file\n");
|
printf("It's a PNG file\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user