-
Notifications
You must be signed in to change notification settings - Fork 0
/
zero_padding.c
27 lines (24 loc) · 1.06 KB
/
zero_padding.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* zero_padding.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sprodatu <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/20 14:29:45 by sprodatu #+# #+# */
/* Updated: 2024/05/03 21:55:55 by sprodatu ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft/libft.h"
#include "ft_printf.h"
size_t zero_padding(size_t padding)
{
size_t count;
count = 0;
while (padding)
{
count += ft_putchar('0');
padding--;
}
return (count);
}