c02 ex12: add

This commit is contained in:
Aleksei Chubukov 2023-11-28 23:47:25 +04:00
parent 62cdd4da00
commit 5ae2d6fb6c
3 changed files with 29 additions and 0 deletions

23
c02/ex12.c Normal file
View File

@ -0,0 +1,23 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ex12.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/28 20:24:04 by achubuko #+# #+# */
/* Updated: 2023/11/28 22:51:11 by achubuko ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
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]));
}

BIN
common/c02ex12.txt Normal file

Binary file not shown.

6
common/c02ex12.xxd Normal file
View File

@ -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