-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_memalloc.c
More file actions
24 lines (21 loc) · 1.12 KB
/
ft_memalloc.c
File metadata and controls
24 lines (21 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* LE - / */
/* / */
/* ft_memalloc.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: rcabotia <marvin@le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/10/04 15:51:24 by rcabotia #+# ## ## #+# */
/* Updated: 2018/10/10 17:13:01 by rcabotia ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include "libft.h"
void *ft_memalloc(size_t size)
{
void *mem;
if (!(mem = (void *)malloc(sizeof(void*) * size)))
return (NULL);
ft_bzero(mem, size);
return (mem);
}