libft
Loading...
Searching...
No Matches
ft_calloc.c File Reference
#include "libft.h"

Go to the source code of this file.

Functions

void * ft_calloc (size_t count, size_t size)
 Allocate and zero.
 

Function Documentation

◆ ft_calloc()

void * ft_calloc ( size_t  count,
size_t  size 
)

Allocate and zero.

Allocates memory and sets every byte to 0.

Parameters
countHow many elements
sizeSize of a element (eg. 4 bytes)
Returns
void* Pointer to the allocated memory
Attention
Allocates memory

Definition at line 15 of file ft_calloc.c.