I worked so hard on writing this function in the C programming language that I have been making backups and posting screenshots on all my social media sites. I want to make sure I NEVER lose this source code because it’s my most brilliant function yet. I can imagine using this in other programs I write in the future.
This program is a test of my function ltostr. It can convert a long integer into a string of any base from 2 to 36. This program first reads command line arguments using the standard library function strtol and then uses my non standard function to display the results in different bases. This allows for printing integers in binary or any other base not supported by the C standard library. It works with some complex pointer arithmetic which I understand but am unable to explain because it’s weird!