Advanced C 33: Parse Command Line Arguments

preview_player
Показать описание
How to parse your command line arguments with the getopt function.

Social links:
Рекомендации по теме
Комментарии
Автор

i dont even write C anymore, why am i still clicking on these videos

emptycode
Автор

I recently made a cli application. To parse the arguments, I used a string hash map with enum. It wasn't perfect, but it was flexible. I wish this library is available on windows though

CoolestPossibleName
Автор

how do you get the syntax highlighting in man pages?

JacobOgle-obys
Автор

when you use case ':' it doesn't fire if you pass the next dashed argument and it uses that instead, so how can you prevent that? like ./a.out -a -b will return "I got a: -b"

nerdydrow