20 lines
445 B
Plaintext
20 lines
445 B
Plaintext
#include <stdio.h>
|
|
#define BUFSIZE 10
|
|
#define STR "||||||||||"
|
|
|
|
int main(void)
|
|
{
|
|
int arrlen = 4;
|
|
char *teststrings[] = {"", "h", "he", "hey"};
|
|
char buf[BUFSIZE] = STR;
|
|
|
|
for (int j = 0; j < arrlen; ++j)
|
|
{
|
|
printf("####### dest = '|' * 10, src == '%s' #######\n", teststrings[j]);
|
|
ft_strcpy(buf, teststrings[j]);
|
|
for (int i = 0; i < BUFSIZE; ++i)
|
|
printf((buf[i] >= 32 && buf[i] <= 126) ? "%c\n" : "0x%x\n", buf[i]);
|
|
}
|
|
return (0);
|
|
}
|