Time to play with C getopt_long

It has been some time since I’ve had reason to write command line posix code. I spent a bit of time re-familiarizing myself with the getopt family of functions. The getopt_long function seems pretty serviceable…could do better with a C++ wrapper, but then I’d have to roll my own (or roll a non-trivial wrapper). At this point I think getopt will do the job I need…

One thought on “Time to play with C getopt_long”

Leave a Reply to jkylewilsonCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.