Top "Atoi" questions

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

atoi implementation in C

I can't understand the following atoi implementation code, specifically this line: k = (k << 3) + (k << 1) + (*p) - …

c atoi atof
How do I tell if the c function atoi failed or if it was a string of zeros?

When using the function atoi (or strtol or similar functions for that matter), how can you tell if the integer …

c++ atoi
Binary String to Integer with 'atoi()'

I have a string of binary that I then convert to an integer using atoi(). When I do this it …

c++ binary decimal atoi
Convert std::string to integer

I'm trying to convert a std::string stored in a std::vector to an integer and pass it to a …

c++ string int atoi
Why do I get this unexpected result using atoi() in C?

I don't understand the results of the following C code. main() { char s[] = "AAA"; advanceString(s); } void advanceString(p[3]) { int …

c atoi
strconv.Atoi() throwing error when given a string

When trying to use strconv on a variable passed via URL(GET variable named times), GoLang fails on compilation stating …

string go atoi strconv
C++ string to int without using atoi() or stoi()

Hi I am new to C++ and trying to do an assignment where we read a lot of data from …

c++ string int type-conversion atoi
How to check to ensure you have an integer before calling atoi()?

I wish to take an integer as a command line argument, but if the user passes a non-integer string, this …

c casting atoi
How do I fix a "no matching function for call to 'atoi'" error?

All indications tell me this is a ridiculously easy problem to solve, but I can't figure out error telling me …

c++ atoi
equivalent of atoi

Is there a function that could replace atoi in c++. I made some research and didn't find anything to replace …

c++ atoi