http://www.360doc.com/content/11/0317/09/6329704_101869559.shtml

 

memmove - copy memory area
#include <string.h>
void *memmove(void *dest, const void *src, size_t n);
void *memcpy(void *dest, const void *src, size_t n);
difference: for memcpy, the memory areas should not overlap.  Use memmove(3) if
the memory areas do overlap.
not overlap: dest<=src || dest>=src+n

char *strcpy(char *dest, const char *src);
char *strncpy(char *dest, const char *src, size_t n);


    char s[]="123456789";
    char d[]="123";
    strcpy(d,s);
    printf("d=%s\ns=%s\n", d, s);

void RightLoopMove(char *str, int steps);
     Left