-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathft_putnstr.c
21 lines (19 loc) · 1020 Bytes
/
ft_putnstr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putnstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vbrazas <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/03/02 20:26:44 by vbrazas #+# #+# */
/* Updated: 2018/03/02 20:37:37 by vbrazas ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
ssize_t ft_putnstr(char const *s, size_t len)
{
if (s)
return (write(1, s, len));
else
return (0);
}