libft
Functions
ft_memalloc.c File Reference
#include "libft.h"
#include <stdlib.h>
+ Include dependency graph for ft_memalloc.c:

Go to the source code of this file.

Functions

void * ft_memalloc (size_t size)
 Allocates memory of a given size and initializes it to 0. More...
 

Function Documentation

◆ ft_memalloc()

void* ft_memalloc ( size_t  size)

Allocates memory of a given size and initializes it to 0.

Parameters
sizeThe size of the memory that needs to be allocated.
Returns
The allocated memory area, or NULL if allocation fails.
See also
ft_calloc

Definition at line 24 of file ft_memalloc.c.