Add ft_print_numbers.c

This commit is contained in:
tosu 2023-03-17 01:07:34 +01:00
parent a54b12d58e
commit 18df1442cc
1 changed files with 33 additions and 0 deletions

33
ex03/ft_print_numbers.c Normal file
View File

@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_reverse_alphabet.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/15 21:50:37 by tischmid #+# #+# */
/* Updated: 2023/03/16 05:00:01 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_print_numbers(void)
{
int i;
i = '0';
while (i <= '9')
{
write(1, &i, 1);
i++;
}
}
/* ////
int main(void)
{
ft_print_numbers();
return (0);
}
*/ ////