-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr.c
25 lines (22 loc) · 1.02 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: ayhamdou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/25 18:16:50 by ayhamdou #+# #+# */
/* Updated: 2023/11/26 18:00:47 by ayhamdou ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putstr(char *str)
{
int i;
i = 0;
if (!str)
str = "(null)";
while (str[i])
ft_putchar(str[i++]);
return (i);
}