#include <oskit/fs/fs.h>void *fs_realloc(void *curaddr, oskit_u32_t newsize);
filesystem library client OS
This function resizes the chunk of allocated memory referenced by curaddr to be at least newsize bytes, and returns a pointer to the new chunk. If successful, the old chunk is freed.The client operating system need not provide any alignment guarantees for the new chunk of memory.
- curaddr
- The address of the old chunk.
- newsize
- The new size in bytes.
Returns a pointer to the new chunk of memory, or NULL on error.