1 2 3 4 5 6 7 8 9 10 11 12 13
#include <string.h> #include <stdio.h> int main() { char tab[] = "qwertyuiopasdfghjklzxcvbnm"; char* ptr_src = tab; char* ptr_dst = tab + 1; size_t sz = 5; memmove(ptr_dst, ptr_src, sz); printf(tab); return 0; }
1
qqwertuiopasdfghjklzxcvbnm