(C) 1998 AROS - The Amiga Research OS


NAME
#include <stdlib.h>

int atoi ()

SYNOPSIS
const char * str

FUNCTION
Convert a string of digits into an integer.

INPUTS
str
The string which should be converted. Leading whitespace are ignored. The number may be prefixed by a '+' or '-'.

RESULT
The value of string str.

EXAMPLE
// returns 1
atoi ("  \t +1");

// returns 1
atoi ("1");

// returns -1
atoi ("  \n -1");
SEE ALSO
atof(), atol(), strtod(), strtol(), strtoul()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
13.06.1998 hkiel
Spellfix.
12.12.1996 aros
New functions