Vote count:
0
I am currently trying to read a PPM file header and collect the data. I get a seg fault error though. Here is what I have:
int ROWS,COLS,BYTES;
char header[80];
FILE *fpt;
fpt = fopen("retna.ppm", "r");
fscanf(fpt,"%s %d %d %d", header, &ROWS, &COLS, &BYTES);
I am currently trying to grab P6 for header, Rows columns and the max pixel. Any thoughts?
asked 32 secs ago
Read PPM file header in C
Aucun commentaire:
Enregistrer un commentaire