Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
atoi(3)
Edit
PageHistory
Diff
Info
LikePages
ATOI !!!ATOI NAME SYNOPSIS DESCRIPTION RETURN VALUE CONFORMING TO NOTES SEE ALSO ---- !!NAME atoi, atol, atoll, atoq - convert a string to an integer. !!SYNOPSIS __#include __''nptr''__); long atol(const char *__''nptr''__); long long atoll(const char *__''nptr''__); long long atoq(const char *__''nptr''__); __ !!DESCRIPTION The __atoi()__ function converts the initial portion of the string pointed to by ''nptr'' to ''int''. The behaviour is the same as __strtol(nptr, (char **)NULL, 10);__ except that __atoi()__ does not detect errors. The __atol()__ and __atoll()__ functions behave the same as __atoi()__, except that they convert the initial portion of the string to their return type of ''long'' or ''long long''. __atoq()__ is an obsolete name for __atoll()__. !!RETURN VALUE The converted value. !!CONFORMING TO SVID 3, POSIX.1, BSD 4.3, ISO/IEC 9899. ISO/IEC 9899:1990 (C89) and POSIX.1 (1996 edition) include the functions __atoi()__ and __atol()__ only; C99 adds the function __atoll()__. !!NOTES The non-standard __atoq()__ function is not present in libc 4.6.27 or glibc 2, but is present in libc5 and libc 4.7 (though only as an inline function in ____ until libc 5.4.44). The __atoll()__ function is present in glibc 2 since version 2.0.2, but not in libc4 or libc5. !!SEE ALSO atof(3), strtod(3), strtol(3), strtoul(3) ----
7 pages link to
atoi(3)
:
Man3a
atof(3)
strtod(3)
strtof(3)
strtol(3)
strtold(3)
strtoul(3)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.