mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-25 17:36:26 -05:00
Reports the size of the allocated memory.
This commit is contained in:
parent
a0ad57d4f1
commit
4e2cb40f98
3 changed files with 16 additions and 0 deletions
5
util.h
5
util.h
|
|
@ -337,6 +337,11 @@ void pathslash(char* dst, size_t size);
|
|||
/****************************************************************************/
|
||||
/* memory */
|
||||
|
||||
/**
|
||||
* Return the size of the allocated memory.
|
||||
*/
|
||||
size_t malloc_counter(void);
|
||||
|
||||
/**
|
||||
* Safe malloc.
|
||||
* If no memory is available, it aborts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue