4 ms·
C can obviously parse flags. See for example the plethora of C software that does so, such as many things from GNU Coreutils. There is no requirement to parse
by rascul 3y ago
C can obviously parse flags. See for example the plethora of C software that does so, such as many things from GNU Coreutils.
There is no requirement to parse flags for the basic functionality of yes. You implemented that yourself. You can remove your own requirement whenever you want. You don't need to parse a flag, at most you need to parse a string from the command line arguments.
I wonder at this point how you define "flag".
- 38 3y agoIt's a lose for C either way. Either it cant parse flags, or we remove that requirement, and my code goes from 9 lines to 6.