Add comment
[darcs-mirrors/primitive.git] / cbits / primitive-memops.c
1 #include <string.h>
2
3 void memcpy_off( void *dst, int doff, void *src, int soff, size_t len )
4 {
5 memcpy( (char *)dst + doff, (char *)src + soff, len );
6 }
7
8 void memmove_off( void *dst, int doff, void *src, int soff, size_t len )
9 {
10 memmove( (char *)dst + doff, (char *)src + soff, len );
11 }
12
13 void memset_off( void *dst, int doff, int c, size_t len )
14 {
15 memset( (char *)dst + doff, c, len );
16 }
17