I can use the strtol
function for turning a base36 based value (saved as a string) into a long int
:
long int val = strtol("ABCZX123", 0, 36);
Is there a standard function that allows the inversion of this? That is, to convert a long int
val variable into a base36 string, to obtain "ABCZX123"
again?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…