-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_malloc_error.c
More file actions
31 lines (27 loc) · 1.19 KB
/
ft_malloc_error.c
File metadata and controls
31 lines (27 loc) · 1.19 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
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_malloc_error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: minkim3 <minkim3@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/11 11:21:49 by minkim3 #+# #+# */
/* Updated: 2023/01/25 20:42:04 by minkim3 ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_malloc_error_int(t_options *string_info)
{
string_info->malloc_error = 1;
return (-1);
}
void *ft_malloc_error_null(t_options *string_info)
{
string_info->malloc_error = 1;
return (NULL);
}
void ft_malloc_error_void(t_options *string_info)
{
string_info->malloc_error = 1;
return ;
}