memset.html 622 B

123456789101112131415161718192021222324252627282930
  1. <html>
  2. <head>
  3. <title>memset</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>memset</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. memset - initialize 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. memset(void *<em>buf</em>, int <em>chr</em>, size_t <em>len</em>);
  16. <h3>Description</h3>
  17. The memory region pointed to by <em>buf</em>, of length <em>len</em>,
  18. is initialized by setting each location of it to <em>chr</em>
  19. (converted to unsigned char).
  20. <h3>Return Values</h3>
  21. memset returns <em>buf</em>.
  22. </body>
  23. </html>