
please wait
char *memmove(void *s1,char *s2,size_t n) { char *sc1; char *sc2; sc1=s1; sc2=s2; if(sc2<sc1 && sc1 <sc2 +n) for(sc1+=n,sc2+=n;0<n;--n) *--sc1=*--sc2; else for(;0<n;--n) *sc1++=*sc2++; return s1; } /* Standard template: char *strcpy(char *s1, const char *s2) copies the string s2 including the null character to s1. This is a compiler built in to handle the different address spaces */ |