News for hackers. Stuff that matters.
Re:How Old School C Programmers Process Arguments by vole on Sunday January 28, 2018 @02:13AM (#16250226)
>Yet there's still one small simplification that can be made: the condition in the inner loop doesn't need "!= '\0'".

I believe this would cause the newline not to be printed in the unknown command error, so it is necessary.

Re:How Old School C Programmers Process Arguments by userbinator on Sunday January 28, 2018 @02:17AM (#16250242)
How? '\0' is the same value as 0 (only with a different type, which doesn't matter in this case), and if(x != 0) is the same as if(x).
Re:How Old School C Programmers Process Arguments by Koshkin on Sunday January 28, 2018 @10:59AM (#16251767)
> a different type

This is true in C++ but not in C.