-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_string.c
27 lines (24 loc) · 1.07 KB
/
ft_printf_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_printf_string.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jikarunw <jikarunw@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/16 22:35:44 by jikarunw #+# #+# */
/* Updated: 2023/09/18 15:49:21 by jikarunw ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf_string(char *str)
{
unsigned int count;
if (!str)
{
ft_putstr_fd("(null)", 1);
return (6);
}
ft_putstr_fd(str, 1);
count = ft_strlen(str);
return (count);
}