c_basic_exo/ex1/ft_print_alphabet.c

34 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_alphabet.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sgongas <sgongas@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/22 22:42:06 by sgongas #+# #+# */
/* Updated: 2026/02/22 23:12:29 by sgongas ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_print_alphabet(void)
{
int i;
i = 97;
while (i <= 122)
ft_putchar(i++);
}
// int main(void)
// {
// ft_print_alphabet();
// return (0);
// }