summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strlcpy.c
diff options
context:
space:
mode:
authorderaadt <>2001-05-13 15:40:16 +0000
committerderaadt <>2001-05-13 15:40:16 +0000
commit4b1cda6c82280e25df0e27631b5e4cf636ef7b1b (patch)
tree9b74f6215e3d012c2595d88d45a8920c8e1c096a /src/lib/libc/string/strlcpy.c
parent8a08da6ca74511062a42107931dccd8893ae4c00 (diff)
downloadopenbsd-4b1cda6c82280e25df0e27631b5e4cf636ef7b1b.tar.gz
openbsd-4b1cda6c82280e25df0e27631b5e4cf636ef7b1b.tar.bz2
openbsd-4b1cda6c82280e25df0e27631b5e4cf636ef7b1b.zip
type of function on seperate line
Diffstat (limited to 'src/lib/libc/string/strlcpy.c')
-rw-r--r--src/lib/libc/string/strlcpy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/string/strlcpy.c b/src/lib/libc/string/strlcpy.c
index 300a28bc39..5f586964b7 100644
--- a/src/lib/libc/string/strlcpy.c
+++ b/src/lib/libc/string/strlcpy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $ */ 1/* $OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
28 */ 28 */
29 29
30#if defined(LIBC_SCCS) && !defined(lint) 30#if defined(LIBC_SCCS) && !defined(lint)
31static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $"; 31static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $";
32#endif /* LIBC_SCCS and not lint */ 32#endif /* LIBC_SCCS and not lint */
33 33
34#include <sys/types.h> 34#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
39 * will be copied. Always NUL terminates (unless siz == 0). 39 * will be copied. Always NUL terminates (unless siz == 0).
40 * Returns strlen(src); if retval >= siz, truncation occurred. 40 * Returns strlen(src); if retval >= siz, truncation occurred.
41 */ 41 */
42size_t strlcpy(dst, src, siz) 42size_t
43strlcpy(dst, src, siz)
43 char *dst; 44 char *dst;
44 const char *src; 45 const char *src;
45 size_t siz; 46 size_t siz;