Closed codybartfast closed 4 years ago
Since these values are being compared directly to 0 it might be a good idea to make it explicit like this enum { OK=0, ERROR };. There is also stdbool.h which defines true and false if that appeals.
0
enum { OK=0, ERROR };
stdbool.h
true
false
Originally posted by @klampworks in https://github.com/codybartfast/knr/pull/2
Done
Since these values are being compared directly to
0
it might be a good idea to make it explicit like thisenum { OK=0, ERROR };
. There is alsostdbool.h
which definestrue
andfalse
if that appeals.Originally posted by @klampworks in https://github.com/codybartfast/knr/pull/2