-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_prints.c
28 lines (25 loc) · 1.07 KB
/
ft_prints.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
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_prints.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bhagenlo <[email protected]. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/12 17:11:10 by bhagenlo #+# #+# */
/* Updated: 2022/05/02 14:36:59 by bhagenlo ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printc(char c)
{
return (write(1, &c, 1));
}
int ft_printstr(char *str)
{
if (!str)
{
write(1, "(null)", 6);
return (6);
}
return (write(1, str, ft_strlen(str)));
}