-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_s.c
25 lines (22 loc) · 1.05 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_s.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gateixei <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/07 21:22:37 by gateixei #+# #+# */
/* Updated: 2022/04/07 21:23:13 by gateixei ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf_s(char *temp)
{
int len;
if (!temp)
return (write(1, "(null)", 6));
len = 0;
len = ft_strlen(temp);
ft_putstr_fd(temp, 1);
return (len);
}