This commit is contained in:
Timo Schmidt 2023-03-16 05:09:17 +01:00
parent 36da01d5a9
commit 8a660c5fea
3 changed files with 56 additions and 2 deletions

View File

@ -6,7 +6,7 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/15 21:34:53 by tischmid #+# #+# */
/* Updated: 2023/03/15 21:46:57 by tischmid ### ########.fr */
/* Updated: 2023/03/16 04:49:07 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
@ -16,3 +16,16 @@ void ft_putchar(char c)
{
write(1, &c, 1);
}
/* ////
int main(void)
{
ft_putchar('a');
ft_putchar('b');
ft_putchar('c');
ft_putchar('d');
return (0);
}
*/ ////

View File

@ -6,7 +6,7 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/15 21:50:37 by tischmid #+# #+# */
/* Updated: 2023/03/15 22:09:02 by tischmid ### ########.fr */
/* Updated: 2023/03/16 04:57:12 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
@ -23,3 +23,11 @@ void ft_print_alphabet(void)
i++;
}
}
/* ////
int main(void)
{
ft_print_alphabet();
return (0);
}
*/ ////

View File

@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_reverse_alphabet.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/15 21:50:37 by tischmid #+# #+# */
/* Updated: 2023/03/16 05:00:01 by tischmid ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_print_reverse_alphabet(void)
{
unsigned int i;
i = 122;
while (i > 96)
{
write(1, &i, 1);
i--;
}
}
/* ////
int main(void)
{
ft_print_reverse_alphabet();
return (0);
}
*/ ////