diff options
Diffstat (limited to 'lib/libc/stdlib/calloc.c')
| -rw-r--r-- | lib/libc/stdlib/calloc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/stdlib/calloc.c b/lib/libc/stdlib/calloc.c index 408eef5e..89e16f80 100644 --- a/lib/libc/stdlib/calloc.c +++ b/lib/libc/stdlib/calloc.c @@ -1,6 +1,8 @@ -#include <errno.h> -#include <string.h> -#include <stdlib.h> +#include "stddef.h" // for NULL + +#include <errno.h> // for errno, EINVAL, ENOMEM +#include <stdlib.h> // for calloc, malloc +#include <string.h> // for size_t, memset void *calloc(size_t nelem, size_t elsize) { |
