7 while (n && (*s1++ = *s2++))
32static uint64_t _test_strncpy_iter(
void)
51 memset(s2,
'x',
sizeof(s2));
53 memset(src,
'a',
sizeof(src));
68 for (
int k = 0; k < 1; ++k)
#define TEST_DEFINE(_name)
Define a test function to be run by TEST_ALL().
#define TEST_ASSERT(cond)
Assert a condition in a test.
#define ERR
Integer error value.
_PUBLIC void * memset(void *s, int c, size_t n)
char * strncpy(char *_RESTRICT s1, const char *_RESTRICT s2, size_t n)