I need to convert a char array to an int. But the char array has regular characters in them('A', 'B', 'C'...) and numbers.
how would I omit those characters and extract the number, then store it as an int.
any help would be great
[QUOTE]or else u can do with strlen [CODE] for(i=0;i<strlen(s);i++)[/CODE][/QUOTE] You could, but you should never use strlen(s) in a loop like that unless the length of the string changes somewhere inside that loop. Why? Because the program has to call strlen() function on every loop iteration, whould could be very … Read More
Edited by Ancient Dragon: n/a
Edited by acer5542: n/a