void* memmove(void* vpDest, const void* kvpSrc, size_t qCount);
#include <cstdio> #include <cstring> int main() { int iaSource[] = {3, 6, 9, 12, 15}; int iaDest[10]; // Copy the five entries of source memmove(iaDest, iaSource, 5*sizeof(int)); for (int iIndex = 0; iIndex < 5; ++iIndex) { printf("%i ", iaDest[iIndex]); } // Add an endline printf("\n"); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.