memmove Function
Syntax:
void *memmove(void *to, const void *from, size_t count);
Example:
#include <stdio.h> #include <string.h> #define SIZE 80 int main() { char str[SIZE], *p; strcpy(str, "AAAAAAAAAAAAAAAAAAAAAAAAA"); p = str + 10; memmove(str, p, SIZE); printf("result after shift: %s", str); return 0; }Back