A
ais523
Not if EOF is 0x100. There's also the risk that you might end up withBen said:I think that this kind of dodge would consistently avoid EOF and
positive values:
enum {
MY_ERR_MIN = EOF ^ 0x100,
MY_ERR_FIRSTERR = MY_ERR_MIN,
MY_ERR_SECONDERR,
MY_ERR_ANOTHERERR,
...etc...
MY_ERR_SENTINEL,
MY_ERR_MAX = MY_ERR_SENTINEL - 1
};
more than 256 error messages...