This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== memcpy ==== Copy byte buffer === Description === <code>memcpy( dest[], source[], index, length )</code> Copy the ''source'' string to ''dest'', starting at the ''index'' byte in dest, and counting ''length'' bytes. === Parameters === | ''dest'' | destination buffer | | ''source'' | string to be copied | | ''index'' | offset in ''source'' | | ''length'' | number of bytes to copy | === Return value === Returns number of bytes copied. === Example usage === <code javascript> new s1{20}; new s2{20}; strcopy(s1, "ABCdef"); memcpy(s2, s1, 3, 3); // s2 now contains "def" - NOTE that no terminating NULL character is copied </code> ezeio2/scriptref/memcpy.txt Last modified: 2019-11-18 22:37by andreh Log In