home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / 2014.11.minnie.tuhs.org.tar / minnie.tuhs.org / UnixArchive / PDP-11 / Trees / V6 / usr / man / man3 / atoi.3 < prev    next >
Encoding:
Text File  |  1975-06-27  |  414 b   |  22 lines

  1. .th ATOI III 2/8/75
  2. .sh NAME
  3. atoi \*- convert ASCII to integer
  4. .sh SYNOPSIS
  5. .ft B
  6. atoi(nptr)
  7. .br
  8. char *nptr;
  9. .ft R
  10. .sh DESCRIPTION
  11. .it Atoi
  12. converts the string pointed to by
  13. .it nptr
  14. to an integer.
  15. The string can contain leading blanks or tabs,
  16. an optional `\-', and then an unbroken string of digits.
  17. Conversion stops at the first non-digit.
  18. .sh "SEE ALSO"
  19. atof (III)
  20. .sh BUGS
  21. There is no provision for overflow.
  22.