-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr.c
27 lines (24 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
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ael-maim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/23 09:36:25 by ael-maim #+# #+# */
/* Updated: 2023/11/28 09:28:55 by ael-maim ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
char *ft_putstr(char *s, int *len)
{
int i;
i = 0;
if (!s)
{
return (ft_putstr("(null)", len));
}
while (s[i])
ft_putchar(s[i++], len);
return (s);
}