-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putchar_pf.c
21 lines (19 loc) · 1.01 KB
/
ft_putchar_pf.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_pf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ymazini <ymazini@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/25 14:28:59 by ymazini #+# #+# */
/* Updated: 2024/11/25 22:42:13 by ymazini ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putchar_pf(char c, size_t *count)
{
if (write(1, &c, 1) == -1)
return (-1);
(*count)++;
return (0);
}