How do you convert a string input into a character array, into an integer value.
I have created a loop in which the value starts at 0, and each iteration adds 10^n * char value (not ASCII, actual value). This works up until about 20 integers, which is the limit of a long long int in C.
I need to be able to convert an arbitrary amount of chars in a string into integers and then into binary. I have been banging my head against this problem for 2 and a half days.
Can someone please shed some light on some ideas I may not be thinking of? Is there any way to convert the character string straight into a binary representation of its value??
Thanks in advance