/usr/src/lib/libc/string/strlcpy.c ANSI function declaration

Steve Mynott steve.mynott at gmail.com
Sun Dec 19 03:54:47 PST 2004


--- strlcpy.c.orig      2004-10-26 17:10:37.000000000 +0100
+++ strlcpy.c   2004-12-19 11:50:17.000000000 +0000
@@ -39,10 +39,8 @@
  * 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)
 {
        char *d = dst;
        const char *s = src;





More information about the Submit mailing list