fix: test: strcpy
This commit is contained in:
parent
d1756266b2
commit
1de03da534
@ -46,14 +46,14 @@ void multiple_test_int_2(int (*normal_func)(const char *, const char *), int (*o
|
||||
}
|
||||
}
|
||||
|
||||
void multiple_test_strcpy(int (*own_func)(char *, const char *), const char * const *values)
|
||||
void multiple_test_strcpy(char *(*own_func)(char *, const char *), const char * const *values)
|
||||
{
|
||||
char tmp[4096];
|
||||
|
||||
for (size_t i = 0; values[i] != NULL; i++)
|
||||
{
|
||||
printf("test: %s", values[i]);
|
||||
test_int(strcpy(tmp, values[i]), own_func(tmp, values[i]));
|
||||
test_size_t((size_t) strcpy(tmp, values[i]), (size_t) own_func(tmp, values[i]));
|
||||
test_str(values[i], tmp);
|
||||
printf("\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user