|
Libft
42 Libft library documentation
|
#include "../includes/libft.h"
Include dependency graph for ft_calloc.c:Go to the source code of this file.
Functions | |
| void * | ft_calloc (size_t nmemb, size_t size) |
| Allocates and zero-initializes an array. | |
| void * ft_calloc | ( | size_t | nmemb, |
| size_t | size | ||
| ) |
Allocates and zero-initializes an array.
Allocates memory for nmemb elements of size bytes each and sets all allocated bytes to zero. Returns NULL on overflow or allocation failure.
| nmemb | Number of elements. |
| size | Size of each element in bytes. |
Definition at line 26 of file ft_calloc.c.
References ft_memset().
Here is the call graph for this function: