-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprnt_hexpad.c
29 lines (26 loc) · 1.09 KB
/
prnt_hexpad.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
26
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* prnt_hexpad.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sprodatu <sprodatu@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/04 06:40:21 by sprodatu #+# #+# */
/* Updated: 2024/05/03 21:55:20 by sprodatu ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft/libft.h"
#include "ft_printf.h"
int prnt_hexpad(int pad_len, char pad_char)
{
int count;
int i;
count = 0;
i = 0;
while (i < pad_len)
{
count += ft_putchar(pad_char);
i++;
}
return (count);
}