Is there a command similar to fwrite where you can write n bytes not to a file but to memory? Basically, I'm working with a 4MB buffer and I want to do everything in memory and THEN write to the harddrive.
This is a discussion on fwrite to memory within the C++ Programming forums, part of the General Programming Boards category; Is there a command similar to fwrite where you can write n bytes not to a file but to memory? ...
Is there a command similar to fwrite where you can write n bytes not to a file but to memory? Basically, I'm working with a 4MB buffer and I want to do everything in memory and THEN write to the harddrive.
memmove()
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.