-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putchar.c
19 lines (17 loc) · 990 Bytes
/
ft_putchar.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: waraissi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/09 18:41:33 by waraissi #+# #+# */
/* Updated: 2022/11/10 17:33:03 by waraissi ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putchar(char c, int *res)
{
write(1, &c, 1);
*res = *res + 1;
}