-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_print_reverse_alphabet.c
30 lines (26 loc) · 1.08 KB
/
ft_print_reverse_alphabet.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
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_reverse_alphabet.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nkuzminy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/14 13:02:45 by nkuzminy #+# #+# */
/* Updated: 2022/07/14 13:02:51 by nkuzminy ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_print_reverse_alphabet(void)
{
char rev_alph;
rev_alph = 'z';
while (rev_alph >= 'a')
{
ft_putchar(rev_alph);
rev_alph--;
}
}