Convert long integer(decimal) to base 36 string (strtol inverted function in C)
There’s no standard function for this. You’ll need to write your own one. Usage example: https://godbolt.org/z/MhRcNA const char digits[] = “0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz”; char *reverse(char *str) { char *end = str; char *start = str; if(!str || !*str) return str; while(*(end + 1)) end++; while(end > start) { int ch = *end; *end– = *start; *start++ = … Read more