Re:How Old School C Programmers Process Arguments
by cagey on Sunday January 28, 2018 @10:45AM
(#16251706)
Maybe I've forgotten more C than I'd like to admit,
while (--argc > 0 && (*++argv)[0] == '-')
...
Notice that the decrement always occurs before the ‘>’ is
evaluated. This would be true even if it were postfix (i.e., argc-- > 0).
but isn't the last statement ("This would be true even if...") in error?
IIRC a post-decrement would occur after the ‘>’ is evaluated.
edit: clarity