-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstr.c
26 lines (23 loc) · 1.06 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
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: arsobrei <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/28 19:09:06 by arsobrei #+# #+# */
/* Updated: 2023/08/31 11:48:36 by arsobrei ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putstr(char *str)
{
int length;
if (str == NULL)
{
return (ft_putstr("(null)"));
}
length = ft_strlen(str);
write(1, str, length);
return (length);
}