Add files
This commit is contained in:
19
ft_hello_42/ft_hello_42.c
Normal file
19
ft_hello_42/ft_hello_42.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_hello_42.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: Syxpi <admin@syxpi.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/28 11:36:02 by Syxpi #+# #+# */
|
||||
/* Updated: 2026/02/28 11:39:00 by Syxpi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
write(1, "Hello 42\n", 9);
|
||||
return (0);
|
||||
}
|
||||
BIN
ft_hello_42/ft_hello_42.exe
Normal file
BIN
ft_hello_42/ft_hello_42.exe
Normal file
Binary file not shown.
32
ft_is_positive/ft_is_positive.c
Normal file
32
ft_is_positive/ft_is_positive.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_is_positive.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: Syxpi <admin@syxpi.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/28 12:12:07 by Syxpi #+# #+# */
|
||||
/* Updated: 2026/02/28 12:14:15 by Syxpi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
void ft_is_positive(int nb)
|
||||
{
|
||||
char c;
|
||||
|
||||
if (nb >= 0)
|
||||
c = 'P';
|
||||
else
|
||||
c = 'N';
|
||||
write(1, &c, 1);
|
||||
}
|
||||
|
||||
int main(void)
|
||||
{
|
||||
ft_is_positive(42);
|
||||
ft_is_positive(-5);
|
||||
write(1, "\n", 1);
|
||||
return (0);
|
||||
}
|
||||
BIN
ft_is_positive/ft_is_positive.exe
Normal file
BIN
ft_is_positive/ft_is_positive.exe
Normal file
Binary file not shown.
25
ft_print_reverse_alphabet/ft_print_reverse_alphabet.c
Normal file
25
ft_print_reverse_alphabet/ft_print_reverse_alphabet.c
Normal file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_print_reverse_alphabet.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: Syxpi <admin@syxpi.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/28 11:53:50 by Syxpi #+# #+# */
|
||||
/* Updated: 2026/02/28 12:11:28 by Syxpi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
void ft_print_reverse_alphabet(void)
|
||||
{
|
||||
char letter;
|
||||
|
||||
letter = 'z';
|
||||
while (letter >= 'a')
|
||||
{
|
||||
write(1, &letter, 1);
|
||||
}
|
||||
write(1, "\n", 1);
|
||||
}
|
||||
BIN
ft_print_reverse_alphabet/ft_print_reverse_alphabet.exe
Normal file
BIN
ft_print_reverse_alphabet/ft_print_reverse_alphabet.exe
Normal file
Binary file not shown.
18
ft_print_z/ft_print_z.c
Normal file
18
ft_print_z/ft_print_z.c
Normal file
@@ -0,0 +1,18 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_print_z.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: Syxpi <admin@syxpi.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/02/28 12:14:58 by Syxpi #+# #+# */
|
||||
/* Updated: 2026/02/28 12:15:29 by Syxpi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
void ft_print_z(void)
|
||||
{
|
||||
write(1, "z\n", 2);
|
||||
}
|
||||
Reference in New Issue
Block a user