-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstr.c
25 lines (22 loc) · 1.04 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
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: made-ara <made-ara@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/03 12:39:31 by made-ara #+# #+# */
/* Updated: 2024/08/07 13:42:26 by made-ara ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putstr(char *s)
{
int len;
if (s == NULL)
{
return (write (1, "(null)", 6));
}
len = write (1, s, ft_strlen(s));
return (len);
}