-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putendl.c
executable file
·21 lines (19 loc) · 1.01 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/25 16:54:55 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:39:35 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "libft.h"
int ft_putendl(char const *s)
{
int len;
len = ft_putstr(s);
return (len + write(1, "\n", 1));
}