Home | History | Annotate | Download | only in lib
      1 /*
      2  * calloc.c
      3  */
      4 
      5 #include <stdlib.h>
      6 #include <string.h>
      7 
      8 /* FIXME: This should look for multiplication overflow */
      9 
     10 void *calloc(size_t nmemb, size_t size)
     11 {
     12     return zalloc(size * nmemb);
     13 }
     14