minor changes

This commit is contained in:
Jakob Stornig 2023-09-25 11:11:07 +02:00
parent ac35897396
commit aa58f99045
2 changed files with 5 additions and 1 deletions

View file

@ -26,6 +26,10 @@ void read_until_space_or_newline(char * buff, int maxCount, FILE * fptr){
Image * load_pgm_image(char * image_file_string){
FILE * fptr = fopen(image_file_string, "r");
if(!fptr){
printf("could not open image file. exit\n");
exit(1);
}
Image *image = malloc(sizeof(Image));
image->label = -1;