summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/memccpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/memccpy.c')
-rw-r--r--lib/libc/string/memccpy.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/libc/string/memccpy.c b/lib/libc/string/memccpy.c
index 37496d1c264..265570c5a42 100644
--- a/lib/libc/string/memccpy.c
+++ b/lib/libc/string/memccpy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: memccpy.c,v 1.4 2003/06/02 20:18:38 millert Exp $ */
+/* $OpenBSD: memccpy.c,v 1.5 2005/03/30 20:13:52 otto Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -33,24 +33,20 @@
#if 0
static char sccsid[] = "@(#)memccpy.c 8.1 (Berkeley) 6/4/93";
#else
-static char *rcsid = "$OpenBSD: memccpy.c,v 1.4 2003/06/02 20:18:38 millert Exp $";
+static char *rcsid = "$OpenBSD: memccpy.c,v 1.5 2005/03/30 20:13:52 otto Exp $";
#endif
#endif /* LIBC_SCCS and not lint */
#include <string.h>
void *
-memccpy(t, f, c, n)
- void *t;
- const void *f;
- int c;
- register size_t n;
+memccpy(void *t, const void *f, int c, size_t n)
{
if (n) {
- register unsigned char *tp = t;
- register const unsigned char *fp = f;
- register unsigned char uc = c;
+ unsigned char *tp = t;
+ const unsigned char *fp = f;
+ unsigned char uc = c;
do {
if ((*tp++ = *fp++) == uc)
return (tp);