Top "Atoi" questions

atoi() is the C runtime library function for converting the ASCII representation of a number to an integer.

How to convert a string to integer in C?

I am trying to find out if there is an alternative way of converting string to integer in C. I …

c string atoi
What is the difference between sscanf or atoi to convert a string to an integer?

gcc 4.4.4 c89 What is better to convert a string to an integer value. I have tried 2 different methods atoi and …

c scanf atoi
atoi() from hex representation string

Need to make int from hex representation string like "0xFA" or better "FA". Need something like atoi("FA"). Is there …

c atoi
What is atoi equivalent for 64bit integer(uint64_t) in C that works on both Unix and Windows?

I'm trying to convert 64bit integer string to integer, but I don't know which one to use.

c++ c atoi
Getting warning in C for 'atoi' function

I'm currently coding for a challenge question in a book I'm reading. My code executes perfectly with the correct output, …

c xcode atoi
What is the difference between std::atoi() and std::stoi?

What is the difference between atoi and stoi? I know, std::string my_string = "123456789"; In order to convert that string …

c++11 atoi
Using atoi with char

Is there a way of converting a char into a string in C? I'm trying to do so like this: …

c atoi
Convert String of ASCII digits to int in MIPS/Assembler

Im writing some MIPS code to take a string of ASCII digits and convert the string into an integer. The …

arrays string int mips atoi
atoi — how to identify the difference between zero and error?

http://www.cplusplus.com/reference/clibrary/cstdlib/atoi/ Return Value On success, the function returns the converted integral number as …

c atoi
Equivalent of atoi for unsigned integers

I'm doing two operations involving atoi and I'm wondering how I can do this with unsigned integers because atoi seems …

c integer-overflow atoi