memcpy.html 780 B

1234567891011121314151617181920212223242526272829303132333435
  1. <html>
  2. <head>
  3. <title>memcpy</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>memcpy</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. memcpy - copy region of memory
  9. <h3>Library</h3>
  10. Standard C Library (libc, -lc)
  11. <h3>Synopsis</h3>
  12. #include &lt;string.h&gt;<br>
  13. <br>
  14. void *<br>
  15. memcpy(void *<em>dest</em>, const void *<em>src</em>, size_t <em>len</em>);
  16. <h3>Description</h3>
  17. The block of memory beginning at <em>src</em>, of length <em>len</em>,
  18. is copied to <em>dest</em>. <em>dest</em> must point to a region large
  19. enough to hold it.
  20. <p>
  21. memcpy is not guaranteed to operate correctly if <em>src</em> and
  22. <em>dest</em> overlap. Use <A HREF=memmove.html>memmove</A> on
  23. overlapping regions.
  24. <h3>Return Values</h3>
  25. memcpy returns <em>dest</em>.
  26. </body>
  27. </html>