**Edit, Sorry guys figured it out I was using the wrong format specifier. Still a super noob with this C stuff. Man that took me almost 2 hours to figure out.
Hi guys,
I am very new to C programming, and I'm attempting to write a decompression program. I am having a problem with my array that holds the ROM data. I have read the graphics data from the ROM to an array in main, I have been using print statements to check the data is correct and they work fine as long as I am in main, but when I try and access the data array inside another function it crashes. More specifically anytime I access the first element it is fine, but when I try to access anything else readbuf[1] it crashes. This is the first program so I might be missing something extremely obvious, any help would be most appreciated. Thanks for the time guys
Mikey.