-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_memalloc.c
executable file
·22 lines (19 loc) · 1 KB
/
ft_memalloc.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memalloc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wdebs <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/09/21 14:59:38 by wdebs #+# #+# */
/* Updated: 2017/02/27 02:52:09 by wdebs ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_memalloc(size_t size)
{
void *var;
var = (void *)malloc(size);
ft_bzero(var, size);
return (var);
}