How do I convert a string representing an integer (such as in a byte list) to an actual integer?
Consider the atoi function. • How do I convert an integer to a string representation? Well, printf does it for output, so look at its related function named sprintf that “prints formated output to a string.” • What is the maximum length of a line of input? I don’t know. Get it working with a very large maximum length first (maybe a few thousand characters) before worrying about getting it to work on arbitrary lengths (arbitrary line length isn’t needed for this assignment, but you should think about how you could do it).