二十五岁时我们都一样愚蠢、多愁善感,喜欢故弄玄虚,可如果不那样的话,五十岁时也就不会如此明智。
标题:C库函数 memmove()
C库函数 memmove()
#include <stdio.h> #include <string.h> int main () { char dest[] = "oldstring"; const char src[] = "newstring"; printf("Before memmove dest = %s, src='/uploads/android/2019/1102/22/15727057994447.jpg' >\n", dest, src); memmove(dest, src, 9); printf("After memmove dest = %s, src='/uploads/android/2019/1102/22/15727057997546.jpg' >\n", dest, src); return(0); }