-
Notifications
You must be signed in to change notification settings - Fork 0
/
print_chr.c
21 lines (18 loc) · 1 KB
/
print_chr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_chr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sde-silv <sde-silv@student.42berlin.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/12 17:08:25 by sde-silv #+# #+# */
/* Updated: 2023/07/12 17:08:27 by sde-silv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int print_chr(int next)
{
unsigned char c;
c = (unsigned char)next;
return (write (1, &c, sizeof(char)));
}