The versatility of the printf function in C represents a great exercise in programming for us. This project is of moderate difficulty. It will enable you to discover variadic functions in C in a particularly relevant context as well as learn about a great example of a basic “dispatcher” in C via the use of an array of function’s pointers.
Nothing spectacular, structs and loops.
I opted for writing a helper function that had to handle way too much. This caused problems both with the school's style guide and debugging as the code turned into spaghetti.
http://www.java2s.com/Code/C/Function/Arrayoffunctionpointer.htm
http://man7.org/linux/man-pages/man3/stdarg.3.html
https://developer.apple.com/library/archive/qa/qa1405/_index.html
https://www.cypress.com/file/54441/download
https://notgnoshi.github.io/printf/
http://www.cplusplus.com/reference/cstdio/printf/
http://www.pixelbeat.org/programming/gcc/format_specs.html
https://stackoverflow.com/questions/35791061/parameter-passing-with-ellipsis-in-c