4 ms·
It'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.
by 38 3y ago
It'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.
- deleted 3y ago[deleted]
- rascul 3y agoC 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.