From 12faf5456d0f2356b6406a0d74ed4559c4a85a41 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 19:41:24 +0100 Subject: ok but might redo ft_split --- src/ft_map_error.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/ft_map_error.c (limited to 'src/ft_map_error.c') diff --git a/src/ft_map_error.c b/src/ft_map_error.c new file mode 100644 index 0000000..bffb6d1 --- /dev/null +++ b/src/ft_map_error.c @@ -0,0 +1,9 @@ +#include +#include + +int +ft_map_error(unsigned int line) +{ + ft_printf("\033[1;31mMap error: line %d\033[0m\n", line); + return (ft_exit(1)); +} -- cgit v1.2.3