-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr.c
25 lines (21 loc) · 1.05 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: vcodrean <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/21 18:31:20 by vcodrean #+# #+# */
/* Updated: 2023/01/19 11:26:14 by vcodrean ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_strlen( const char *str);
int ft_putstr(char *str)
{
int len;
if (!str)
str = "(null)";
len = ft_strlen(str);
return (write(1, str, len));
}