-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchars.c
More file actions
22 lines (20 loc) · 1010 Bytes
/
chars.c
File metadata and controls
22 lines (20 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* :::::::: */
/* chars.c :+: :+: */
/* +:+ */
/* By: cstaats <cstaats@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2021/11/29 12:30:28 by cstaats #+# #+# */
/* Updated: 2021/12/02 17:19:04 by cstaats ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
int chars(char c, int fd)
{
int cnt;
cnt = 0;
write(fd, &c, 1);
cnt++;
return (cnt);
}