]> pd.if.org Git - pdclib/blobdiff - functions/stdlib/calloc.c
Removed old files.
[pdclib] / functions / stdlib / calloc.c
diff --git a/functions/stdlib/calloc.c b/functions/stdlib/calloc.c
deleted file mode 100644 (file)
index a9a485f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/* ----------------------------------------------------------------------------
- * $Id$
- * ----------------------------------------------------------------------------
- * Public Domain C Library - http://pdclib.sourceforge.net
- * This code is Public Domain. Use, modify, and redistribute at will.
- * --------------------------------------------------------------------------*/
-
-void * calloc( size_t nelem, size_t size ) { /* TODO */ };
-
-/* PDPC code - unreviewed
-{
-    void *ptr;
-    size_t total;
-    
-    if (nmemb == 1)
-    {
-        total = size;
-    }
-    else if (size == 1)
-    {
-        total = nmemb;
-    }
-    else
-    {
-        total = nmemb * size;
-    }
-    ptr = malloc(total);
-    if (ptr != NULL)
-    {
-        memset(ptr, '\0', total);
-    }
-    return (ptr);
-}
-*/