25 lines
665 B
Plaintext
25 lines
665 B
Plaintext
#include <stdio.h>
|
|
#define STR "\x42\x6f\x6e\x6a\x6f\x75\x72\x20\x6c\x65" \
|
|
"\x73\x20\x61\x6d\x69\x6e\x63\x68\x65\x73" \
|
|
"\x09\x0a\x09\x63\x07\x20\x65\x73\x74\x20" \
|
|
"\x66\x6f\x75\x09\x74\x6f\x75\x74\x09\x63" \
|
|
"\x65\x20\x71\x75\x20\x6f\x6e\x20\x70\x65" \
|
|
"\x75\x74\x20\x66\x61\x69\x72\x65\x20\x61" \
|
|
"\x76\x65\x63\x09\x0a\x09\x70\x72\x69\x6e" \
|
|
"\x74\x5f\x6d\x65\x6d\x6f\x72\x79\x0a\x0a" \
|
|
"\x0a\x09\x6c\x6f\x6c\x2e\x6c\x6f\x6c\x0a" \
|
|
"\x20\xff\x00"
|
|
#define STR2 "HELLO"
|
|
|
|
int main(void)
|
|
{
|
|
char *ptr = STR;
|
|
for (int i = 0; i < 95; ++i)
|
|
{
|
|
printf("Bytes: %d\n", i);
|
|
ft_print_memory(ptr, i);
|
|
write(1, "\n", 1);
|
|
}
|
|
return (0);
|
|
}
|