Files
amiga-libnix2/libnix/sources/nix/misc/bcopy.c
T
jshepher f5e2060927 Reimplemented bzero, bcopy and memset again. The previous ones had
subtle errors which crashed things.
2004-12-04 22:38:39 +00:00

13 lines
198 B
C
Executable File

#include <stdlib.h>
#include <string.h>
void bcopy(const void *s1,void *s2,size_t n)
{
unsigned char *ch1 = s1;
unsigned char *ch2 = s2;
while (n > 0) {
*ch2++ = *ch1++;
n--;
}
}