Reduces memory occupation with many files.

This commit is contained in:
Andrea Mazzoleni 2013-02-26 21:26:45 +01:00
parent a41443b6b6
commit b7bedc8b60
5 changed files with 43 additions and 3 deletions

6
util.h
View file

@ -369,6 +369,12 @@ void* malloc_nofail(size_t size);
*/
void* malloc_nofail_align(size_t size, void** freeptr);
/**
* Safe strdup.
* If no memory is available, it aborts.
*/
char* strdup_nofail(const char* str);
/****************************************************************************/
/* hash */