hcl/lib/cmn/str-cpy.h

8 lines
147 B
C
Raw Normal View History

2014-07-02 14:29:01 +00:00
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;
}