-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putchar.c
More file actions
19 lines (17 loc) · 982 Bytes
/
ft_putchar.c
File metadata and controls
19 lines (17 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: halhashm <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/16 14:19:31 by halhashm #+# #+# */
/* Updated: 2021/11/17 12:34:47 by halhashm ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
void ft_putchar(char c, int *i)
{
write(1, &c, 1);
*i += 1;
}