1 /* strlcpy implementation for systems that do not have it in libc
2 * Time-stamp: <2004-03-14 njk>
3 * (C) 2003-2004 Nicholas J. Kain <njk@aerifal.cx>
8 unsigned int strlcpy (char *dest
, const char *src
, unsigned int size
)
10 register unsigned int i
= 0;
14 for (i
=0; size
> 0 && src
[i
] != '\0'; ++i
, size
--)