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 0000000..03f6a89 Binary files /dev/null and b/common/c02ex12.txt differ diff --git a/common/c02ex12.xxd b/common/c02ex12.xxd new file mode 100644 index 0000000..763eba8 --- /dev/null +++ b/common/c02ex12.xxd @@ -0,0 +1,6 @@ +426f 6e6a 6f75 7220 6c65 7320 616d 696e +6368 6573 090a 0963 0720 6573 7420 666f +7509 746f 7574 0963 6520 7175 206f 6e20 +7065 7574 2066 6169 7265 2061 7665 6309 +0a09 7072 696e 745f 6d65 6d6f 7279 0a0a +0a09 6c6f 6c2e 6c6f 6c0a 2000