-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_safemalloc.c
More file actions
26 lines (23 loc) · 1.04 KB
/
ft_safemalloc.c
File metadata and controls
26 lines (23 loc) · 1.04 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
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_safemalloc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: juazouz <juazouz@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/26 12:37:30 by juazouz #+# #+# */
/* Updated: 2018/11/28 15:19:16 by juazouz ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
void *ft_safemalloc(size_t size)
{
void *res;
res = ft_memalloc(size);
if (res == NULL)
{
ft_putendl(ERROR_MSG);
exit(1);
}
return (res);
}