hcl/lib/cmn/str-cpy.h

8 lines
147 B
C

h2_size_t XFUN(strcpy) (xchar_t* dst, const xchar_t* src)
{
const xchar_t* p = src;
while (*p != XCHAR('\0')) *dst++ = *p++;
return p - src;
}