Compare commits
2 Commits
20fcf7d906
...
5ae2d6fb6c
Author | SHA1 | Date | |
---|---|---|---|
|
5ae2d6fb6c | ||
|
62cdd4da00 |
20
c02/ex11.c
Normal file
20
c02/ex11.c
Normal 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
23
c02/ex12.c
Normal 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
BIN
common/c02ex12.txt
Normal file
Binary file not shown.
6
common/c02ex12.xxd
Normal file
6
common/c02ex12.xxd
Normal 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
|
Loading…
Reference in New Issue
Block a user