C program ltostr function

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!

Author: chandlerklebs

I have unusual thoughts on almost every subject. I am as Pro-Life as I can possibly be. I am strongly opposed to violence of any type. That includes rape, war, and (obviously) abortion. Everything I think, speak, and write must be filtered by the effect it could have on the lives of others. If I am in any way promoting violence accidentally, please let me know.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s