-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_char.c
21 lines (19 loc) · 1017 Bytes
/
ft_printf_char.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_char.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dalcabre <dalcabre@student.42urduliz.co +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/06 12:10:16 by dalcabre #+# #+# */
/* Updated: 2024/02/13 16:51:06 by dalcabre ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf_char(char c)
{
if (!c)
return (write(1, "\n", 1));
write(1, &c, 1);
return (1);
}