🌐
TutorialsPoint
tutorialspoint.com › c_standard_library › c_function_atoi.htm
C library - atoi() function
The C stdlib library atoi() function is used to convert a numeric string into an integer value. An integer is a whole number that can be positive or negative, including zero. It can't be fraction, decimal, or percentage, For example, numbers like 1,
🌐
GeeksforGeeks
geeksforgeeks.org › c language › c-atoi-function
atoi() Function in C - GeeksforGeeks
October 13, 2025 - In C, atoi stands for ASCII To Integer. The atoi() is a library function in C that converts the numbers in string form to their integer value.
🌐
Linux Man Pages
man7.org › linux › man-pages › man3 › atoi.3.html
atoi(3) - Linux manual page
September 9, 2026 - atoi(3) Library Functions Manual atoi(3) atoi, atol, atoll - convert a string to an integer ·
🌐
Microsoft Learn
learn.microsoft.com › en-us › cpp › c-runtime-library › reference › atoi-atoi-l-wtoi-wtoi-l
atoi, _atoi_l, _wtoi, _wtoi_l | Microsoft Learn
November 15, 2023 - Each function returns the int value produced by interpreting the input characters as a number. The return value is 0 for atoi and _wtoi, if the input can't be converted to a value of that type.
🌐
cppreference.com
en.cppreference.com › c › string › byte › atoi
atoi, atol, atoll - cppreference.com
Interprets an integer value in a byte string pointed to by str. The implied radix is always 10 · Discards any whitespace characters until the first non-whitespace character is found, then takes as many characters as possible to form a valid integer number representation and converts them to ...
🌐
musl
git.musl-libc.org › cgit › musl › tree › src › stdlib › atoi.c
atoi.c\stdlib\src - musl - musl - an implementation of the standard library for Linux-based systems
path: root/src/stdlib/atoi.c · blob: 9baca7b895a0e2f5c3cfab1554f8dcdd280431b9 (plain) (blame) · generated by cgit v1.2.1 (git 2.18.0) at 2026-10-12 11:07:52 +0000
🌐
O'Reilly
oreilly.com › library › view › c-in-a › 0596006977 › re15.html
atoi - C in a Nutshell [Book]
December 16, 2005 - NameatoiSynopsisConverts a string to an integer#include <stdlib.h> intatoi( const char *s ); long atol( const char *s ); long long atoll( const char *s ); (C99)The atoi()... - Selection from C in a Nutshell [Book]
Authors: Peter PrinzTony Crawford
Published: 2005
Pages: 618
🌐
CS50
manual.cs50.io › 3 › atoi
atoi - CS50 Manual Pages
atoi, atol, atoll - convert a string to an integer · Standard C library (libc, -lc) #include <stdlib.h> int atoi(string s); #include <stdlib.h> int atoi(const char *nptr); long atol(const char *nptr); long long atoll(const char *nptr); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): atoll(): _ISOC99_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE ·
🌐
cppreference.com
en.cppreference.com › cpp › string › byte › atoi
std::atoi, std::atol, std::atoll - cppreference.com
Actual C++ library implementations fall back to C library implementations of atoi, atoil, and atoll, which either implement it directly (as in MUSL libc) or delegate to strtol/strtoll (as in GNU libc).
Find elsewhere
🌐
Microchip
onlinedocs.microchip.com › oxy › GUID-07E1F2AB-C1A0-411C-966F-8738802C42B9-en-US-4 › GUID-EE10E388-55AF-45CB-981E-2A7414F38FF2.html
6.19.10 atoi Function
Microchip Unified Standard Library Reference Guide · Converts a string to an integer. Include · <stdlib.h> Prototype · int atoi(const char *s); Argument · s · string to be converted · Return Value · Returns the converted integer if successful; otherwise, returns 0.
🌐
IBM
ibm.com › docs › es › i › 7.5.0
atoi ()-Convertir serie de caracteres en entero
The page you requested cannot be displayed (HTTP response code 403)
🌐
KooR
koor.fr › C › cstdlib › atoi.wp
KooR.fr - atoi - Langage C
Cette fonction permet de transformer une chaîne de caractères, représentant une valeur entière, en une valeur numérique de type int. Le terme d'atoi est un acronyme signifiant :
🌐
IBM
ibm.com › docs › fr › i › 7.6.0
atoi ()-Convertit une chaîne de caractères en entier
The page you requested cannot be displayed (HTTP response code 403)
🌐
IBM
ibm.com › docs › en › zos › 2.4.0
atoi() — Convert character string to integer
The page you requested cannot be displayed (HTTP response code 403)
🌐
STMicroelectronics Community
community.st.com › stmicroelectronics community › discussions › product forums › stm32 mcus › stm32 mcus products › atoi() and hal_uart
Atoi() and HAL_UART | Community
June 6, 2023 - uint8_t data; data = atoi(command); uint8_t str[10]; sprintf(str, "\r\n %u", data); HAL_UART_Transmit(&huart1, (uint8_t*)str, strlen(str), 100);
🌐
Manpagez
manpagez.com › man › 3 › atoi
man page atoi section 3
Standard C Library (libc, -lc) #include <stdlib.h> int atoi(const char *str); #include <xlocale.h> int atoi_l(const char *str, locale_t loc); The atoi() function converts the initial portion of the string pointed to by str to int representation. It is equivalent to: (int)strtol(str, (char **)NULL, ...
🌐
Narkive
gcc-help.gcc.gnu.narkive.com › sAdocQgj › function-redefined
Function redefined
SSO - static shared object DSO - dynamic shared object You can list out your executable's SSO's using the ldd command. DSO's explicitly use the dlopen and manually match symbols up from the shared object library. You could use a DSO to access the atoi function in the library, even if you have an SSO or executable that has defined a different atoi function.
🌐
Arduino Forum
forum.arduino.cc › projects › programming
Serial Read, String, Convert ATOI - Programming - Arduino Forum
April 10, 2012 - Hey guys, I am not sure if this is a popular subject but I have tried looking through Google as "arduino read string from serial convert to integer" because my issue is having a number entered in the serial by a user and then having that character/string converted into an actual number.
🌐
Oracle
docs.oracle.com › cd › E86824_01 › html › E54766 › atoi-3c.html
atoi - man pages section 3: Basic Library Functions
Except for behavior on error, atoi() is equivalent to: (int) strtol(str, (char **)NULL, 10).