Hi epvpers!
I have a question about converting numbers (decimal) to radix 64.
Tell the truth the conversion is OK, but I have problem with converting it back.
The code above works perfectly until base 36, because 'strtoull' support only up to 36.
But I would like to convert it back to decimal.
What is the better way to do that?
Thank you.
I have a question about converting numbers (decimal) to radix 64.
Tell the truth the conversion is OK, but I have problem with converting it back.
Code:
static long unsigned int base64dec(const char *text)
{
return strtoull(text, NULL, 64);
}
But I would like to convert it back to decimal.
What is the better way to do that?
Thank you.