ATOI

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

atoi - convert ASCII string to integer  

SYNOPSIS

Fd #include <stdlib.h> Ft int Fn atoi const char *nptr  

DESCRIPTION

The Fn atoi function converts the initial portion of the string pointed to by nptr to integer representation.

It is equivalent to:

(int)strtol(nptr, (char **)NULL, 10);
 

SEE ALSO

atof(3), atol(3), strtod(3), strtol(3), strtoul(3)  

STANDARDS

The Fn atoi function conforms to St -ansiC .


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 21:44:10 GMT, August 05, 2022