Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h>
- #include <string.h>
- int read_image(char* file_name, char** image_data, int* width, int* height) {
- FILE* fp = fopen(file_name, "rb");
- int width, height, max, type;
- file_header = fscanf("P%d %d %d %d\n",&type,&width,&height,&max);
- image_data = malloc()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement