top | item 16250226

(no title)

vole | 8 years ago

>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.

discuss

order

userbinator|8 years ago

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).

Koshkin|8 years ago

> a different type

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