|
@@ -40,10 +40,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.2 1998/11/06 04:33:16 wvdputte Exp
|
|
|
* will be copied. Always NUL terminates (unless siz == 0).
|
|
|
* Returns strlen(src); if retval >= siz, truncation occurred.
|
|
|
*/
|
|
|
-size_t strlcpy(dst, src, siz)
|
|
|
- char *dst;
|
|
|
- const char *src;
|
|
|
- size_t siz;
|
|
|
+size_t strlcpy(char *dst, const char *src, size_t siz)
|
|
|
{
|
|
|
register char *d = dst;
|
|
|
register const char *s = src;
|