DragonFly BSD
DragonFly submit List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Steve Mynott <steve.mynott@xxxxxxxxx>
Date: Sun, 19 Dec 2004 11:53:47 +0000

--- 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;



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]