-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_print_char.c
25 lines (23 loc) · 1.18 KB
/
ft_print_char.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_char.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apolo-to <apolo-to@student.42madrid> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/28 18:01:28 by apolo-to #+# #+# */
/* Updated: 2023/03/28 11:11:47 by apolo-to ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
/**
* This ft print a char and modify the num of chars printed by printf.
* @param c The char to print.
* @param *chars_printed The pointer to modify the num of chars printed.
* @return Nothing
*/
void ft_print_char(char c, int *chars_printed)
{
write(1, &c, 1);
*chars_printed += 1;
}