Archive for the ‘ Development ’ Category
Although C is regarded primarily as a procedural language, it is entirely possible to write C code structured in a way similar to code written in object-oriented languages such as C++. Now, of course, you could go all out and write truely object-oriented C, complete with inheritance, type checking, and the like. But that’s not [ READ MORE ]
After some brief searching, I found a way to create my own custom printf() wrapper functions. The technique is rather simple. Declare a function that accepts a format string and a varying number of further arguments. Pass said string and arguments to fprintf. Do anything else desired before and after[ READ MORE ]
I decided to write a quick utility that I could use from the command line to view a number in all three formats. Hence, I present you with nf, short for 'number format'[ READ MORE ]