-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_print_n_bonus.c
More file actions
25 lines (22 loc) · 1.01 KB
/
Copy pathft_print_n_bonus.c
File metadata and controls
25 lines (22 loc) · 1.01 KB
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_n_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: obouizi <obouizi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/03 13:17:58 by obouizi #+# #+# */
/* Updated: 2024/12/05 20:48:16 by obouizi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf_bonus.h"
int print_n(char c, int n)
{
int len;
len = 0;
while (len < n)
{
len += ft_putchar(c);
}
return (len);
}