void read_bitmap_metadata(FILE *image, int *pixel_array_offset, int *width, int *height) {
    
    
        fseek(image, 10, SEEK_SET);
        error = fread(pixel_array_offset,4,1,image);
        fseek(image, 18, SEEK_SET);
        error = fread(width,4,1,image);
        fseek(image, 22, SEEK_SET);
        error = fread(height,4,1,image);
}
pixel_array_offset should assign the value in byte 10 - 13 of the file, byte 18 - 21 should be the value for width should be assigned the value of byte 18 - 21 of the file, height should be assign the value of byte 22-25 of the file