Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ atoi(III) — UNIX 6th Edition 1.3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

atof (III)

ATOI(III)  −  PWB/UNIX 2/8/75

NAME

atoi − convert ASCII to integer

SYNOPSIS

atoi(nptr)
char *nptr;

DESCRIPTION

Atoi converts the string pointed to by nptr to an integer.  The string can contain leading blanks or tabs, an optional ‘−’, and then an unbroken string of digits.  Conversion stops at the first non-digit. 

SEE ALSO

atof (III)

BUGS

There is no provision for overflow. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026