Add ltalloc.

This commit is contained in:
Syoyo Fujita
2016-05-19 15:05:57 +09:00
parent fc42eb8232
commit 8c03771aac
7 changed files with 1164 additions and 50 deletions

14
experimental/ltalloc.h Normal file
View File

@@ -0,0 +1,14 @@
#include <stdlib.h> /*a more portable size_t definition than stddef.h itself*/
#ifdef __cplusplus
extern "C" {
#endif
void* ltmalloc(size_t);
void ltfree(void*);
void* ltrealloc( void *, size_t );
void* ltcalloc( size_t, size_t );
void* ltmemalign( size_t, size_t );
void ltsqueeze(size_t pad); /*return memory to system (see README.md)*/
size_t ltmsize(void*);
#ifdef __cplusplus
}
#endif