Name: Anonymous 2009-04-26 16:48
printf("reading input image ... \n");
/*unidata.image = (image_ptr*)read_pnm(argv[1], &(unidata.rows), &(unidata.cols), &type);
*/
printf("hello.jpg");
printf("image read successfully \n");
printf("rows=%d, cols=%d, type=%d \n", unidata.rows, unidata.cols, type);
/* error here*/
printf("well");
the errors are coming between the two final printf statements. when the read_pnm() is left uncommented it is a segmentation fault, when commented it is a floating point exception.
what the fucking shit, /prog/?
/*unidata.image = (image_ptr*)read_pnm(argv[1], &(unidata.rows), &(unidata.cols), &type);
*/
printf("hello.jpg");
printf("image read successfully \n");
printf("rows=%d, cols=%d, type=%d \n", unidata.rows, unidata.cols, type);
/* error here*/
printf("well");
the errors are coming between the two final printf statements. when the read_pnm() is left uncommented it is a segmentation fault, when commented it is a floating point exception.
what the fucking shit, /prog/?