gnuk/src/stdlib.h

16 lines
318 B
C
Raw Normal View History

2010-09-08 05:24:12 +00:00
/*
* stdlib.h replacement, so that we can replace malloc functions
*/
typedef unsigned int size_t;
#ifdef REPLACE_MALLOC
#define malloc my_malloc
#define free my_free
#define realloc my_realloc
#endif
extern void *malloc (size_t size);
extern void free (void *ptr);
extern void *realloc (void *ptr, size_t size);