switchtemp.c

Template for a switchable command line utility, written in portable C. Various flags already set, for example -v for version output. Special feature is a customizable switch counter that limits the amount of processed arguments. On this page you will always find the latest variant, code is maintained at GitHub.

Feel free to use this code for your own portable C projects, switchtemp.c is released under the FreeBSD license. If you have any suggestions, please contact me.