getchar.html 766 B

123456789101112131415161718192021222324252627282930313233343536
  1. <html>
  2. <head>
  3. <title>getchar</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>getchar</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. getchar - read character from standard input
  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. getchar(void);
  16. <h3>Description</h3>
  17. getchar reads a single character from standard input. The character is
  18. converted to unsigned char before being returned; thus, EOF, which is
  19. negative, is not a possible successful return value.
  20. <h3>Return Values</h3>
  21. On success, getchar returns the character read. On error, or end of
  22. file, EOF is returned.
  23. <h3>Errors</h3>
  24. Any of the errors associated with <A HREF=../syscall/read>read</A>
  25. may occur.
  26. </body>
  27. </html>