puts.html 745 B

123456789101112131415161718192021222324252627282930313233343536
  1. <html>
  2. <head>
  3. <title>puts</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>puts</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. puts - print string to standard output
  9. <h3>Library</h3>
  10. Standard C Library (libc, -lc)
  11. <h3>Synopsis</h3>
  12. #include &lt;stdio.h&gt;<br>
  13. <br>
  14. int<br>
  15. puts(const char *<em>string</em>);
  16. <h3>Description</h3>
  17. The string <em>string</em>, and a following newline character, is
  18. printed on the standard output.
  19. <h3>Return Values</h3>
  20. On success, puts returns a nonnegative integer. On error, -1 is
  21. returned, and <A HREF=../syscall/errno.html>errno</A> is set
  22. according to the error encountered.
  23. <h3>Errors</h3>
  24. Any of the errors from <A HREF=../syscall/write.html>write</A> may
  25. occur.
  26. </body>
  27. </html>