cmd: Use NUL/0 instead of 0x00

Alexandre Julliard julliard at winehq.org
Tue Sep 13 13:56:36 CDT 2011


Frédéric Delanoy <frederic.delanoy at gmail.com> writes:

> Well IMHO '\0' clearly indicates a char value, while 0 could be an
> integer (not in this obvioius example of course).
> This way you've a visual indicator/differentiator with nearby integer
> values assignments like "foo_integer_var = 0", and this could make the
> code more readable IMO

They both mean the same thing, and I don't think the extra line noise
makes it more readable. But like I said, it's a matter of taste, and you
can use the way you prefer in your own code; the corollary is that you
can't change it in other people's code.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list