firstly i have tried typecasting a string to an integer or rather an element of an array which is a string e.g.
and i know that for c++ you can use atoi which works fine;
But i need the conversion to work on c, atoi doesn't seem to be working and when i try the typecast conversion it goes from the number 2 to some like 23465???
Any help is greatly appreciated this completely seperate from any other of my posts just to clarify.
Code:
string[0] = "2"; int a = (int)string[0];
But i need the conversion to work on c, atoi doesn't seem to be working and when i try the typecast conversion it goes from the number 2 to some like 23465???
Any help is greatly appreciated this completely seperate from any other of my posts just to clarify.
Comment