Compare commits

...

2 Commits

Author SHA1 Message Date
Aleksei Chubukov
5ae2d6fb6c c02 ex12: add 2023-11-28 23:47:25 +04:00
Aleksei Chubukov
62cdd4da00 c02 ex11: add 2023-11-28 23:47:07 +04:00
4 changed files with 49 additions and 0 deletions

20
c02/ex11.c Normal file
View File

@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ex11.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achubuko <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/28 20:16:09 by achubuko #+# #+# */
/* Updated: 2023/11/28 20:19:12 by achubuko ### ########.fr */
/* */
/* ************************************************************************** */
void ft_putstr_non_printable(char *str);
int main(int argc, char **argv)
{
if (argc != 2)
return (1);
ft_putstr_non_printable(argv[1]);
}

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