mirror of
https://github.com/cahirwpz/libnix.git
synced 2025-12-08 14:58:56 +00:00
13 lines
198 B
C
Executable File
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--;
|
|
}
|
|
}
|