cvsuser 02/11/09 01:17:34
Modified: . memory.c
Log:
allocate_zeroed
Revision Changes Path
1.38 +11 -2 parrot/memory.c
Index: memory.c
===================================================================
RCS file: /cvs/public/parrot/memory.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -w -r1.37 -r1.38
--- memory.c 18 Jul 2002 04:29:39 -0000 1.37
+++ memory.c 9 Nov 2002 09:17:34 -0000 1.38
@@ -1,7 +1,7 @@
/* memory.c
* Copyright: (When this is determined...it will go here)
* CVS Info
- * $Id: memory.c,v 1.37 2002/07/18 04:29:39 mongo Exp $
+ * $Id: memory.c,v 1.38 2002/11/09 09:17:34 leo Exp $
* Overview:
* The memory (mem) API handles memory allocation
* Data Structure and Algorithms:
@@ -18,6 +18,15 @@
void *
mem_sys_allocate(size_t size)
{
+ return malloc((size_t)size);
+}
+
+/*=for api mem mem_sys_allocate_zeroed
+ uses calloc to allocate system memory
+*/
+void *
+mem_sys_allocate_zeroed(size_t size)
+{
return calloc(1, (size_t)size);
}