-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr.c
executable file
·22 lines (20 loc) · 1.03 KB
/
ft_putstr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/25 16:50:31 by tseguier #+# #+# */
/* Updated: 2014/07/06 14:18:33 by tseguier ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "libft.h"
int ft_putstr(char const *s)
{
if (!s)
return (write(1, "(NULL)", 6));
else
return (write(1, s, ft_strlen(s)));
}