Synopsis

#include <stdlib.h>

int atoi(const char *str);

Conformance

IEEE Std 1003.1-2001

Description

Function converts the string pointed to, by the argument str to an integer (type int).

Return value

The atoi() function shall return the converted value if the value can be represented.

Errors

The function atoi() need not affect the value of errno on an error.