25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_print_numbers.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/07/12 20:36:08 by adjoly #+# #+# */
|
|
/* Updated: 2023/07/15 15:33:47 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include <unistd.h>
|
|
|
|
void ft_print_numbers(void)
|
|
{
|
|
char nbr;
|
|
|
|
nbr = '0';
|
|
while (nbr <= '9')
|
|
{
|
|
write(1, &nbr, 1);
|
|
nbr++;
|
|
}
|
|
}
|