Home Forums C Programming base conversion Reply To: base conversion

#3265
Priyansh Agrawal
Participant

This code could do this from base 2-10 to base 2-10. There is a nice function called itoa that converts int to char* and you can specify the base. Unfortunatelly the function atoi has no base-parameter. So I recoded it: