summaryrefslogtreecommitdiff
path: root/lib/libc/string/strlcpy.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-13 15:40:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-13 15:40:17 +0000
commit25673787bbabcccb8282d30cac9e5f69f1a10f59 (patch)
tree97c13e15c0bffdd8c2d76fdd1a18d6bd0ea0649a /lib/libc/string/strlcpy.c
parent55c37b576f488eb17df5eff986709ece85ab0de7 (diff)
type of function on seperate line
Diffstat (limited to 'lib/libc/string/strlcpy.c')
-rw-r--r--lib/libc/string/strlcpy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/string/strlcpy.c b/lib/libc/string/strlcpy.c
index 300a28bc391..5f586964b76 100644
--- a/lib/libc/string/strlcpy.c
+++ b/lib/libc/string/strlcpy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $ */
+/* $OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $ */
/*
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $";
+static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -39,7 +39,8 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp
* will be copied. Always NUL terminates (unless siz == 0).
* Returns strlen(src); if retval >= siz, truncation occurred.
*/
-size_t strlcpy(dst, src, siz)
+size_t
+strlcpy(dst, src, siz)
char *dst;
const char *src;
size_t siz;