Creating Your Own Library

Anyone who’s programmed in C for a while has worked with other libraries. In Linux, it’s common to link in the math library, libm.a. Other libraries are available to expand what the C language can do. I have books available on Ncurses, curl, XML and JSON, each of which has a library that makes it easy to use these powerful utilities. But what about making your own library?
Continue reading

Recursion Until Death!

When I first learned Assembly Language, I had a fear of blowing up the stack. Remember, back in the 8-bit microcomputer era that memory space was tight, maybe only part of 64K. A stack would have 1K of storage, if that. I think the stack size on my TRS-80 was 256 bytes. (An address was only two bytes wide.) This limitation meant that pushing too much data on the stack would blow up the computer.
Continue reading

Happy 250th, USA!

US Flag in ASCII, color characters, red, white, and blue
Today is Independence Day in the USA. Two hundred and fifty years ago, this nation’s founding fathers signed the Declaration of Independence. While I’ve had posts dated July 4 previously on this blog, today is a special anniversary. It necessitates a specific C language program.
Continue reading