-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putchar.c
More file actions
20 lines (18 loc) · 994 Bytes
/
ft_putchar.c
File metadata and controls
20 lines (18 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fmorenil <fmorenil@student.42madrid> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/27 19:46:11 by fmorenil #+# #+# */
/* Updated: 2024/04/06 18:36:28 by fmorenil ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putchar(char c)
{
if (!write(1, &c, 1))
return (-1);
return (1);
}