memory.h

00001 /*
00002  * Copyright (c) 2005-2012 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_memory_set_malloc (void *(*f_malloc)(size_t));
00016 void u_memory_set_calloc (void *(*f_calloc)(size_t, size_t));
00017 void u_memory_set_realloc (void *(*f_realloc)(void *, size_t));
00018 void u_memory_set_free (void (*f_free)(void *));
00019 void *u_malloc (size_t sz);
00020 void *u_calloc (size_t cnt, size_t sz);
00021 void *u_zalloc (size_t sz);
00022 void *u_realloc (void *ptr, size_t sz);
00023 void u_free (void *ptr);
00024 
00025 #ifdef __cplusplus
00026 }
00027 #endif
00028 
00029 #endif /* !_U_ALLOC_H_ */
00030 

←Products
© 2005-2012 - KoanLogic S.r.l. - All rights reserved