-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_s.c
27 lines (24 loc) · 1.07 KB
/
ft_printf_s.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_s.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcoskune <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/29 16:00:26 by mcoskune #+# #+# */
/* Updated: 2024/05/09 15:01:21 by mcoskune ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf_s(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);
}