36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_print_memory.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/03/21 05:44:01 by tischmid #+# #+# */
|
|
/* Updated: 2023/03/21 06:43:18 by tischmid ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
|
|
void ft_putchar(char c)
|
|
{
|
|
write(1, &c, 1);
|
|
}
|
|
|
|
void *ft_print_memory(void *addr, unsigned int size)
|
|
{
|
|
|
|
return (addr);
|
|
}
|
|
|
|
/* ////
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
char s[] = "0123456789abcdef0123456789abcdefghijklmnopqrstuvwxyz";
|
|
ft_print_memory(s, 20);
|
|
return (0);
|
|
}
|
|
*/ ////
|