-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putstrlen.c
31 lines (27 loc) · 1.08 KB
/
ft_putstrlen.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
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstrlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abertran <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/18 19:14:22 by abertran #+# #+# */
/* Updated: 2022/11/18 19:24:29 by abertran ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putstrlen(char *str, int *len)
{
int i;
i = 0;
if (str == NULL)
{
ft_putstrlen("(null)", len);
return ;
}
while (str[i] != '\0')
{
ft_putcharlen(str[i], len);
i++;
}
}