- May
- 13,211
- 180
If I do this,
WCHAR szClassExpr[128] = L"*";
and later while parsing a command line,
else if ( !lstrcmpi(arg, L"/CLASS") )
NthArgument(psz, (++i) | 0x8800, szClassExpr, NULL);
and no argument was provided to the "/CLASS" option, then NthArgument() fails (not finding arg ++i) but szClassExpr gets clobbered (winds up with szClassExpr[0] == 0). This clobbering is mildly inconvenient. Can it be used to advantage? ThanksNthArgument(psz, (++i) | 0x8800, szClassExpr, NULL);