-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathft_memalloc.c
More file actions
22 lines (19 loc) · 1.03 KB
/
ft_memalloc.c
File metadata and controls
22 lines (19 loc) · 1.03 KB
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: smbaabu <smbaabu@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/22 19:13:17 by smbaabu #+# #+# */
/* Updated: 2019/03/27 23:21:38 by smbaabu ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_memalloc(size_t size)
{
char *ret;
if ((ret = (char *)malloc(size)) == NULL)
return (NULL);
return (ft_memset(ret, 0, size));
}