I am trying to copy the contents of a file into memory. The size of file is about 5-6 Kb (Wouwww!!!). So, as you guess "fread" gives me bus error. I tried the same code with a smaller file (about 200-250 bytes) and it works. So, the rest of the code is OK.
Is there anything that I can do or do I have to write my own function in order to read from file by spliting the data in it into smaller sizes.
PS: I am using FreeBSD 5.1 and GCC.
Fehmi Noyan ISI