strcpy.html 739 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <html>
  2. <head>
  3. <title>strcpy</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>strcpy</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. strcpy - copy string
  9. <h3>Library</h3>
  10. Standard C Library (libc, -lc)
  11. <h3>Synopsis</h3>
  12. #include &lt;string.h&gt;<br>
  13. <br>
  14. char *<br>
  15. strcpy(char *<em>dest</em>, const char *<em>src</em>);
  16. <h3>Description</h3>
  17. The contents of the string <em>src</em> are copied into
  18. <em>dest</em>.
  19. <h3>Restrictions</h3>
  20. If <em>dest</em> does not point to enough space to hold the string,
  21. the resulting behavior is undefined.
  22. <p>
  23. If the memory areas pointed to by <em>dest</em> and <em>src</em>
  24. overlap, the behavior is undefined.
  25. <h3>Return Values</h3>
  26. strcpy returns <em>dest</em>.
  27. </body>
  28. </html>