- 1

Conversion between q_based string and integer

How can I make a function that converts a q_based string into an integer in C? Ex. (Binary to decimal, Octal to decimal, etc) Int q2num(char num_q[], int q)

23rd Feb 2020, 9:56 PM
Woody Lin
Woody Lin - avatar
1 Answer
0
There are functions in the stdlib that will convert a string to a number, but I'm not sure what you mean by "q_based string" http://www.cplusplus.com/reference/cstdlib/
23rd Feb 2020, 10:39 PM
rodwynnejones
rodwynnejones - avatar