N
nass
hi all,
i am running slackware linux and need to use some function that will
will enable me to write and read from a shared mem segment..
i am using open() , to open a file, and then use mmap to get a void*
file_memory pointer. then i use fwrite(aStruct,structSize,1,(((FILE*)
file_memory) + anOffset)) to try to write to the file but it crashes.
could it be that fwrite does not understand the file_memory pointer?
what else can i use to do the writing?
thankyou for your help
nass
i am running slackware linux and need to use some function that will
will enable me to write and read from a shared mem segment..
i am using open() , to open a file, and then use mmap to get a void*
file_memory pointer. then i use fwrite(aStruct,structSize,1,(((FILE*)
file_memory) + anOffset)) to try to write to the file but it crashes.
could it be that fwrite does not understand the file_memory pointer?
what else can i use to do the writing?
thankyou for your help
nass