1 //===-- memory.c - String functions for the LLVM libc Library ----*- C -*-===//
3 // A lot of this code is ripped gratuitously from glibc and libiberty.
5 //===----------------------------------------------------------------------===//
11 void *memset(void *, int, size_t);
13 void *calloc(size_t nelem, size_t elsize) {
14 void *Result = malloc(nelem*elsize);
15 return memset(Result, 0, nelem*elsize);