Main Page | Modules | Data Structures | File List | Data Fields

memory.c

00001 /*
00002  * Copyright (c) 2005, 2006 by KoanLogic s.r.l. - All rights reserved.
00003  */
00004 
00005 static const char rcsid[] =
00006     "$Id: memory.c,v 1.1 2006/11/20 13:38:01 tho Exp $";
00007 
00008 #include <stdlib.h>
00009 
00010 #include <toolbox/memory.h>
00011 
00018 void *u_malloc (size_t sz)
00019 {
00020     return malloc(sz);
00021 }
00022 
00024 void *u_calloc (size_t cnt, size_t sz)
00025 {
00026     return calloc(cnt, sz);
00027 }
00028 
00030 void *u_zalloc (size_t sz)
00031 {
00032     return calloc(1, sz);
00033 }
00034 
00036 void *u_realloc (void *ptr, size_t sz)
00037 {
00038     return realloc(ptr, sz);
00039 }
00040 
00042 void u_free (void *ptr)
00043 {
00044     if (ptr)
00045         free(ptr);
00046 }
00047 

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