30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_print_alphabet.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/08/05 13:11:54 by gbaconni #+# #+# */
|
|
/* Updated: 2021/08/05 13:17:19 by gbaconni ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
|
|
void ft_print_alphabet(void)
|
|
{
|
|
int start;
|
|
int end;
|
|
int i;
|
|
|
|
start = (int) 'a';
|
|
end = (int) 'z';
|
|
i = start;
|
|
while (i <= end)
|
|
{
|
|
write(1, &i, 1);
|
|
i++;
|
|
}
|
|
}
|