load or save a chunk of memory to/from file


/ Published in: C
Save to your folder(s)

loadfile(filename);
returns NULL on fail or a pointer that should be free()d when no longer needed.

savefile(filename,data,dataSize);
returns 0 on fail or 1 on success.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.