libft/src/ft_putznbr_fd.c

27 lines
1.0 KiB
C
Raw Normal View History

2023-04-15 06:46:13 +02:00
/* ************************************************************************** */
/* */
/* :::::::: */
2023-10-26 18:06:04 +02:00
/* ft_putznbr_fd.c :+: :+: */
2023-04-15 06:46:13 +02:00
/* +:+ */
/* By: djonker <marvin@codam.nl> +#+ */
/* +#+ */
/* Created: 2020/11/13 04:22:10 by djonker #+# #+# */
2023-10-26 18:06:04 +02:00
/* Updated: 2023/10/18 17:00:10 by houtworm ######## odam.nl */
2023-04-15 06:46:13 +02:00
/* */
/* ************************************************************************** */
#include "../libft.h"
void ft_putznbr_fd(int n, int e, int fd)
{
int s;
s = ft_intlen(n) - e;
while (s != 0)
{
ft_putchar_fd('0', fd);
s++;
}
ft_putnbr_fd(n, fd);
}