From deb1cbd5bd0c8397d865744deb12d99bd3c41452 Mon Sep 17 00:00:00 2001 From: Aleksei Chubukov Date: Tue, 21 Nov 2023 23:10:07 +0400 Subject: [PATCH] import all offfshore mains --- .c00_ex08.c.swp | Bin 0 -> 12288 bytes c00_ex00.c | 18 ++++++++++++++++++ c00_ex01.c | 18 ++++++++++++++++++ c00_ex02.c | 18 ++++++++++++++++++ c00_ex03.c | 18 ++++++++++++++++++ c00_ex04.c | 20 ++++++++++++++++++++ c00_ex05.c | 7 +++++++ c00_ex06.c | 5 +++++ c00_ex07.c | 25 +++++++++++++++++++++++++ c00_ex08.c | 22 ++++++++++++++++++++++ 10 files changed, 151 insertions(+) create mode 100644 .c00_ex08.c.swp create mode 100644 c00_ex00.c create mode 100644 c00_ex01.c create mode 100644 c00_ex02.c create mode 100644 c00_ex03.c create mode 100644 c00_ex04.c create mode 100644 c00_ex05.c create mode 100644 c00_ex06.c create mode 100644 c00_ex07.c create mode 100644 c00_ex08.c diff --git a/.c00_ex08.c.swp b/.c00_ex08.c.swp new file mode 100644 index 0000000000000000000000000000000000000000..ddea5e85dad2c6ea011b0ddb36d5178ba159cc31 GIT binary patch literal 12288 zcmeI&PfEi;6bA5DcUg#{7l^uO0+Pg3q0+Sr7cLbUs=DpiA}B9c$aY46h7BUi<(LPmev)52-DD^&9X0a+f wnI^t6I%Zw_w%e~Zm)ow0muc1i=Z#?+_f4uk^{JCo$Kk%O^3-E^rLOqiJJ_*k9RL6T literal 0 HcmV?d00001 diff --git a/c00_ex00.c b/c00_ex00.c new file mode 100644 index 0000000..a7c637d --- /dev/null +++ b/c00_ex00.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex00.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 19:43:15 by achubuko #+# #+# */ +/* Updated: 2023/11/18 19:52:46 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ + +void ft_putchar(char c); + +int main() +{ + ft_putchar('0'); +} diff --git a/c00_ex01.c b/c00_ex01.c new file mode 100644 index 0000000..2bfe84b --- /dev/null +++ b/c00_ex01.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 20:46:04 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_print_alphabet(void); + +int main(void) +{ + ft_print_alphabet(); + return 0; +} diff --git a/c00_ex02.c b/c00_ex02.c new file mode 100644 index 0000000..738b46c --- /dev/null +++ b/c00_ex02.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 22:07:50 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_print_reverse_alphabet(void); + +int main(void) +{ + ft_print_reverse_alphabet(); + return 0; +} diff --git a/c00_ex03.c b/c00_ex03.c new file mode 100644 index 0000000..f57e2ca --- /dev/null +++ b/c00_ex03.c @@ -0,0 +1,18 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 22:24:47 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_print_numbers(void); + +int main(void) +{ + ft_print_numbers(); + return 0; +} diff --git a/c00_ex04.c b/c00_ex04.c new file mode 100644 index 0000000..14aa481 --- /dev/null +++ b/c00_ex04.c @@ -0,0 +1,20 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* c00_ex01.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/18 20:31:16 by achubuko #+# #+# */ +/* Updated: 2023/11/18 22:37:36 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +void ft_is_negative(int); + +int main(void) +{ + ft_is_negative(1); + ft_is_negative(-1); + ft_is_negative(0); + return 0; +} diff --git a/c00_ex05.c b/c00_ex05.c new file mode 100644 index 0000000..549d062 --- /dev/null +++ b/c00_ex05.c @@ -0,0 +1,7 @@ +void ft_print_comb(void); + +int main(void) +{ + ft_print_comb(); + return 0; +} diff --git a/c00_ex06.c b/c00_ex06.c new file mode 100644 index 0000000..af9ad05 --- /dev/null +++ b/c00_ex06.c @@ -0,0 +1,5 @@ +void ft_print_comb2(void); +int main(void) +{ + ft_print_comb2(); +} diff --git a/c00_ex07.c b/c00_ex07.c new file mode 100644 index 0000000..2a68b0c --- /dev/null +++ b/c00_ex07.c @@ -0,0 +1,25 @@ +void ft_putnbr(int); +void ft_putchar(char); +int main(void) +{ + ft_putnbr(0xEFFFFFFF); + ft_putchar('\n'); + ft_putnbr(-7141); + ft_putchar('\n'); + ft_putnbr(-1); + ft_putchar('\n'); + ft_putnbr(0); + ft_putchar('\n'); + ft_putnbr(42); + ft_putchar('\n'); + ft_putnbr(421); + ft_putchar('\n'); + ft_putnbr(1945); + ft_putchar('\n'); + ft_putnbr(0xDEAD); + ft_putchar('\n'); + ft_putnbr(0xBADF00D); + ft_putchar('\n'); + ft_putnbr(0x7FFFFFFF); + ft_putchar('\n'); +} diff --git a/c00_ex08.c b/c00_ex08.c new file mode 100644 index 0000000..246c754 --- /dev/null +++ b/c00_ex08.c @@ -0,0 +1,22 @@ +void ft_print_combn(int n); +void ft_putchar(char); +int main(void) +{ + ft_print_combn(1); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(2); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(3); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(4); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(5); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(6); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(9); + ft_putchar('%'); ft_putchar('\n'); + ft_print_combn(10); + ft_putchar('%'); ft_putchar('\n'); + +}