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.
Stop trying to program things if you don't know how.
Name:
Anonymous2009-04-26 17:04
shit, i forgot that /prog/ was full of idiot trolls who don't actually know anything. i guess i should got to daniweb or somewhere else. thank for trying anyway, /prog/
>>13
the read function itself works fine, but it may indeed be a problem with that line. i am trying to fill an array in the structure, it should work as far as i can tell? i will experiment some more with that (i think it may be because i am actually tripling up the pointer?)
i don't get how the structure being full of uninitialized junk would matter unless i was doing something with it (which i'm not, it's just crashing).