-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_input_errors.c
23 lines (20 loc) · 1.01 KB
/
ft_input_errors.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_input_errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: flfische <flfische@student.42heilbronn. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/29 14:08:21 by flfische #+# #+# */
/* Updated: 2024/03/29 14:10:24 by flfische ### ########.fr */
/* */
/* ************************************************************************** */
int *ft_get_input_error(void)
{
static int error;
return (&error);
}
void ft_set_input_error(int error)
{
*ft_get_input_error() = error;
}