-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_put_error.c
20 lines (18 loc) · 1018 Bytes
/
ft_put_error.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_put_error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qduong <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/04 14:37:53 by qduong #+# #+# */
/* Updated: 2022/01/04 14:42:33 by qduong ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
//put error to stderr(fd 2)
int ft_put_error(void)
{
write(STDERR_FILENO, "Error\n", 6);
return (-1);
}