atoi.html 698 B

1234567891011121314151617181920212223242526272829303132
  1. <html>
  2. <head>
  3. <title>atoi</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>atoi</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. atoi - convert ascii to integer
  9. <h3>Library</h3>
  10. Standard C Library (libc, -lc)
  11. <h3>Synopsis</h3>
  12. #include &lt;stdlib.h&gt;<br>
  13. <br>
  14. int<br>
  15. atoi(const char *<em>string</em>);
  16. <h3>Description</h3>
  17. <em>string</em>, which should be a textual representation of an
  18. integer, is converted to the machine representation of that integer.
  19. Leading whitespace, if any, is skipped. Conversion stops when a
  20. non-numeric character is found.
  21. <h3>Return Values</h3>
  22. atoi returns the number converted. If no digits at all were found, it
  23. returns 0.
  24. </body>
  25. </html>