fp is 0x7
i can even read from the file
but as soon i hit fseek it crashes...
fp is 0x7
i can even read from the file
but as soon i hit fseek it crashes...
if fp is 0x7, then it is NOT a FILE *, it's a filehandle. I bet that you are reading from the file with read(), not fread(). These are two different sets of file interfaces, one using an integer [essentially, and index into a table], the other using a POINTER to a FILE object.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
problem solved. thanks