OS_ReadArgs example
William Harden (2174) 244 posts |
Hi, Does anyone have a nicely structured example of processing OS_ReadArgs (ideally in C)? Just trying to get my head around how to set up a code pattern to do it in a non-‘icky’ fashion. Some sort of structure where expanding or developing the syntax is easily maintainable with multiple switches, optionals, etc. A brief hunt through the source didn’t really find what I was after. |
Colin (478) 2433 posts |
Don’t have a C example but !UntarBz2.Tools.UntarBz2 uses OS_ReadArgs in FNparam. !untarbz2 is available in the downloads section of this site. |
WPB (1391) 352 posts |
Also BASIC, but well commented, IGEPv2LEDs used OS_ReadArgs. You can see it online here – then click on “Demo”. It’s at around line 1440. |