-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar.c
19 lines (17 loc) · 987 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: aachhoub <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/22 12:34:45 by aachhoub #+# #+# */
/* Updated: 2022/10/22 12:34:47 by aachhoub ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putchar(char c, int *index)
{
write(1, &c, 1);
(*index)++;
}