3 ms·
On the topic of processing command-line arguments and the recent post on obscure things you can do with C: My "magic getopt" (http://www.daemonology.net/blog/20
by cperciva 9y ago
On the topic of processing command-line arguments and the recent post on obscure things you can do with C: My "magic getopt" (http://www.daemonology.net/blog/2015-12-06-magic-getopt.html http://www.daemonology.net/blog/2015-12-06-magic-getopt.html) does some very evil things to make it possible to write a "normal-looking" C getopt look which accepts both short and long options.