init
This commit is contained in:
25
C/c00v2/ex02/ft_print_reverse_alphabet.c
Normal file
25
C/c00v2/ex02/ft_print_reverse_alphabet.c
Normal file
@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_print_reverse_alphabet.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: cchauvet <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/07/14 13:52:57 by cchauvet #+# #+# */
|
||||
/* Updated: 2022/07/16 10:37:57 by cchauvet ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
void ft_print_alphabet(void)
|
||||
{
|
||||
char a;
|
||||
|
||||
a = 'z';
|
||||
while (a >= 'a')
|
||||
{
|
||||
write(1, &a, 1);
|
||||
a--;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user