-/* $OpenBSD: bcmp.c,v 1.11 2017/01/24 08:09:05 kettenis Exp $ */
+/* $OpenBSD: bcmp.c,v 1.12 2021/05/16 04:45:58 jsg Exp $ */
/*
* Copyright (c) 1987 Regents of the University of California.
int
bcmp(b1, b2, length)
const void *b1, *b2;
- register size_t length;
+ size_t length;
{
- register char *p1, *p2;
+ char *p1, *p2;
if (length == 0)
return(0);
-/* $OpenBSD: memcpy.c,v 1.4 2017/01/24 08:09:05 kettenis Exp $ */
+/* $OpenBSD: memcpy.c,v 1.5 2021/05/16 04:45:58 jsg Exp $ */
/*-
* Copyright (c) 1993
void *
memcpy(void *s1, const void *s2, size_t n)
{
- register const char *f = s2;
- register char *t = s1;
+ const char *f = s2;
+ char *t = s1;
while (n-- > 0)
*t++ = *f++;
-/* $OpenBSD: memmove.c,v 1.2 2017/01/24 08:09:05 kettenis Exp $ */
+/* $OpenBSD: memmove.c,v 1.3 2021/05/16 04:45:58 jsg Exp $ */
/*-
* Copyright (c) 1993
void *
memmove(void *s1, const void *s2, size_t n)
{
- register const char *f = s2;
- register char *t = s1;
+ const char *f = s2;
+ char *t = s1;
if (f < t) {
f += n;