summaryrefslogtreecommitdiff
path: root/src/lib
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
parent8a08da6ca74511062a42107931dccd8893ae4c00 (diff)
downloadopenbsd-4b1cda6c82280e25df0e27631b5e4cf636ef7b1b.tar.gz
openbsd-4b1cda6c82280e25df0e27631b5e4cf636ef7b1b.tar.bz2
openbsd-4b1cda6c82280e25df0e27631b5e4cf636ef7b1b.zip
type of function on seperate line
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/string/strlcat.c7
-rw-r--r--src/lib/libc/string/strlcpy.c7
2 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/libc/string/strlcat.c b/src/lib/libc/string/strlcat.c
index b8725c37ff..b309648155 100644
--- a/src/lib/libc/string/strlcat.c
+++ b/src/lib/libc/string/strlcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strlcat.c,v 1.7 2001/05/07 15:42:46 millert Exp $ */ 1/* $OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 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: strlcat.c,v 1.7 2001/05/07 15:42:46 millert Exp $"; 31static char *rcsid = "$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 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>
@@ -41,7 +41,8 @@ static char *rcsid = "$OpenBSD: strlcat.c,v 1.7 2001/05/07 15:42:46 millert Exp
41 * Returns strlen(src) + MIN(siz, strlen(initial dst)). 41 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
42 * If retval >= siz, truncation occurred. 42 * If retval >= siz, truncation occurred.
43 */ 43 */
44size_t strlcat(dst, src, siz) 44size_t
45strlcat(dst, src, siz)
45 char *dst; 46 char *dst;
46 const char *src; 47 const char *src;
47 size_t siz; 48 size_t siz;
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;