00001 /* 00002 * Copyright (c) 2005, 2006 by KoanLogic s.r.l. - All rights reserved. 00003 */ 00004 00005 #ifndef _U_ALLOC_H_ 00006 #define _U_ALLOC_H_ 00007 00008 #include <u/libu_conf.h> 00009 #include <sys/types.h> 00010 00011 #ifdef __cplusplus 00012 extern "C" { 00013 #endif 00014 00015 void *u_malloc(size_t sz); 00016 void *u_zalloc(size_t sz); 00017 void *u_calloc(size_t cnt, size_t sz); 00018 void *u_realloc(void *ptr, size_t sz); 00019 void u_free(void *ptr); 00020 00021 #ifdef __cplusplus 00022 } 00023 #endif 00024 00025 #endif /* !_U_ALLOC_H_ */ 00026