-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_str_increment.c
More file actions
23 lines (21 loc) · 1.05 KB
/
ft_str_increment.c
File metadata and controls
23 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_increment.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mraineri <mraineri@student.42lisboa.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/27 15:19:59 by mraineri #+# #+# */
/* Updated: 2024/08/28 13:20:40 by mraineri ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_str_increment(char *s, int *counter)
{
if (!counter)
return ;
if (!s)
s = "(null)";
write(1, s, ft_strlen(s));
*counter += ft_strlen(s);
}