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.
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.