tgrekov-libft
HIVE libft Oct 2023
|
Definition in file ft_calloc.c.
#include "libft.h"
Go to the source code of this file.
Functions | |
void * | ft_calloc (size_t count, size_t size) |
Allocates count * size bytes with malloc and returns a pointer to the result. | |
void * ft_calloc | ( | size_t | count, |
size_t | size | ||
) |
Allocates count
* size
bytes with malloc and returns a pointer to the result.
[in] | count | Number of objects to allocate for |
[in] | size | Size of each object |
void* | Freeable pointer to allocated memory after it is filled with zeroes If either count or size are 0 , returns ft_calloc(1, 1) . If the multiplication of count and size overflows, returns NULL . |
Definition at line 34 of file ft_calloc.c.
References ft_bzero(), and ft_calloc().