From 5ae2d6fb6c93dbde46d931426d5b602433cf7c70 Mon Sep 17 00:00:00 2001 From: Aleksei Chubukov Date: Tue, 28 Nov 2023 23:47:25 +0400 Subject: [PATCH] c02 ex12: add --- c02/ex12.c | 23 +++++++++++++++++++++++ common/c02ex12.txt | Bin 0 -> 92 bytes common/c02ex12.xxd | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 c02/ex12.c create mode 100644 common/c02ex12.txt create mode 100644 common/c02ex12.xxd diff --git a/c02/ex12.c b/c02/ex12.c new file mode 100644 index 0000000..e2ab653 --- /dev/null +++ b/c02/ex12.c @@ -0,0 +1,23 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ex12.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: achubuko +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/11/28 20:24:04 by achubuko #+# #+# */ +/* Updated: 2023/11/28 22:51:11 by achubuko ### ########.fr */ +/* */ +/* ************************************************************************** */ +#include +#include +#include + +void *ft_print_memory(void *addr, unsigned int size); + +int main(int argc, char **argv) +{ + if (argc != 3) + return (1); + ft_print_memory(argv[1], atoi(argv[2])); +} diff --git a/common/c02ex12.txt b/common/c02ex12.txt new file mode 100644 index 0000000000000000000000000000000000000000..03f6a89e253e33d2962185d6150f4fb484113051 GIT binary patch literal 92 zcmWN{!3}^Q3`SvZrk&!Sz#&}35K