I am looking to implement a big integer library in C, and I am still stuck on as to how I should represent an input string as an array of long integers. The input string would be given in base-10, and then I would need to be able to find out how to store this in base 2^64 (the size of a long integer).
unsigned long long *string_to_long_arr(char *string);
I know I can use floored division and the modulo operation to convert between bases, but this won't work for large numbers as I won't have access to those operations. I was thinking about trying to use the ASCII values of the input string, but I'm not sure how well that'd work and what its exact implementation would be like. Also, I know other programming languages have big integers (Python, for example). I haven't found how its implementation works. Links to how the conversion process between strings and long arrays in other programming languages would be much appreciated. Thank you!