-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_print_alphabet.c
30 lines (26 loc) · 1.07 KB
/
ft_print_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_alphabet.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nkuzminy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/14 12:51:34 by nkuzminy #+# #+# */
/* Updated: 2022/07/14 12:51:39 by nkuzminy ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_print_alphabet(void)
{
char alphabet;
alphabet = 'a';
while (alphabet <= 'z')
{
ft_putchar(alphabet);
alphabet++;
}
}