fenbf / cppstories-discussions

4 stars 1 forks source link

2021/cplinksdec/ #66

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

C++ Links #6: C++23 Progress, Command Line, Containers, and more! - C++ Stories

Welcome to the 6th episode of C++ Links available for C++ Stories subscribers. See the best C++ stories from the past month. Here’s the plan for today: C++23 progress Parsing Command Line Arguments 3 New articles at C++stories in November + 8 Hot C++ News How to write a custom iterator in C++20 Read till the end to see an additional bonus :) Let’s start!

https://www.cppstories.com/2021/cplinksdec/

2kaud commented 2 years ago

Parsing Command Line Arguments.

I used to use GNU getopt(). It was pure C code but worked well for what it was used for. https://www.gnu.org/software/libc/manual/html_node/Getopt.html

It's available from the github gcc

getopt.,h https://github.com/gcc-mirror/gcc/tree/master/include

getopt.c https://github.com/gcc-mirror/gcc/tree/master/libiberty