-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathft_putendl.c
24 lines (21 loc) · 1.03 KB
/
ft_putendl.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ggane <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/04/21 07:49:14 by ggane #+# #+# */
/* Updated: 2016/10/24 21:34:56 by ggane ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putendl(char const *s)
{
char new_line;
new_line = '\n';
if (!s)
return ;
write(1, s, ft_strlen(s));
write(1, &new_line, 1);
}