-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar.c
23 lines (20 loc) · 1.01 KB
/
ft_putchar.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: pveiga-c <pveiga-c@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/24 19:02:56 by pveiga-c #+# #+# */
/* Updated: 2023/04/28 16:06:59 by pveiga-c ### ########.fr */
/* */
/* ************************************************************************** */
/*
Imprime um único caractere.
*/
#include "ft_printf.h"
void ft_putchar(char c, int *len_final)
{
write(1, &c, 1);
*len_final += 1;
}