May I ask, 1 and 0 like this, "1 0" or " 0 1 " or "10" or what?
it can get a number
what is "it", please?
At any rate, atoi() should be able to handle any string which converts to a valid integer, usually in the range "-2147483648" to "+2147483647". The string "10" certainly fits within that range.
Well, that was hard work. I asked three times what was the exact string, and still got no answer. We would have reached the solution much faster if we worked together in cooperation.