Automatic add
This commit is contained in:
parent
230bc49d81
commit
78df919e7e
|
@ -7,11 +7,13 @@ int main(void)
|
|||
int arrlen = 4;
|
||||
char *teststrings[] = {"", "h", "he", "hey"};
|
||||
char buf[BUFSIZE] = STR;
|
||||
char *return_val;
|
||||
|
||||
for (int j = 0; j < arrlen; ++j)
|
||||
{
|
||||
printf("####### dest = '|' * 10, src == '%s' #######\n", teststrings[j]);
|
||||
ft_strcpy(buf, teststrings[j]);
|
||||
return_val = ft_strcpy(buf, teststrings[j]);
|
||||
printf("RetVal: %s\n", return_val);
|
||||
for (int i = 0; i < BUFSIZE; ++i)
|
||||
printf((buf[i] >= 32 && buf[i] <= 126) ? "%c\n" : "0x%x\n", buf[i]);
|
||||
}
|
||||
|
|
|
@ -7,11 +7,13 @@ int main(void)
|
|||
int arrlen = 4;
|
||||
char *teststrings[] = {"", "h", "he", "hey"};
|
||||
char buf[BUFSIZE] = STR;
|
||||
char *return_val;
|
||||
|
||||
for (int j = 0; j < arrlen; ++j)
|
||||
{
|
||||
printf("####### dest = '|' * 10, src == '%s' #######\n", teststrings[j]);
|
||||
ft_strcpy(buf, teststrings[j]);
|
||||
return_val = ft_strcpy(buf, teststrings[j]);
|
||||
printf("RetVal: %s\n", return_val);
|
||||
for (int i = 0; i < BUFSIZE; ++i)
|
||||
printf((buf[i] >= 32 && buf[i] <= 126) ? "%c\n" : "0x%x\n", buf[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue