Thursday 5 December 2019

c++ - Standalone library implementing realloc?

Anyone know a standalone library implementing realloc(), given nothing but a chunk of memory to manage? (The heap.)



I.e. after being initialized with a heap pointer and the size, it provides free/malloc/realloc managing that area.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...