-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathft_exit.c
21 lines (19 loc) · 1000 Bytes
/
ft_exit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_exit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: majjig <majjig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/12 00:53:12 by majjig #+# #+# */
/* Updated: 2021/12/12 00:57:19 by majjig ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void ft_exit(char *msg)
{
if (msg)
while (*msg)
write(2, msg++, 1);
exit(1);
}