-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_string.c
27 lines (25 loc) · 1.04 KB
/
ft_string.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_string.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cproesch <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/08/04 18:19:56 by cproesch #+# #+# */
/* Updated: 2021/08/04 18:20:04 by cproesch ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_string(char *s, int *j)
{
if (s)
{
ft_putstr(s);
(*j) = (*j) + ft_strlen(s);
}
else
{
write(1, "(null)", 6);
(*j) = (*j) + 6;
}
}