File: memmove.c

package info (click to toggle)
netpipes 4.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 376 kB
  • ctags: 202
  • sloc: ansic: 3,272; makefile: 114
file content (20 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

#include <sys/types.h>

#ifdef NO_MEMMOVE
/* bloody SunOS, it's not ANSI */
void *memmove(dst, src, n)
    void *dst;
    void *src;
    size_t n;
{
    int	i;
    /* this memmove is not as functional as the ANSI one, it only works for
       what we do in copyio */
    for (i=0; i<n; i++) {
	((char*)dst)[i] = ((char*)src)[i];
    }
    return dst;
}

#endif