groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [groff] [off-topic] Reliable use of errno


From: Ralph Corderoy
Subject: Re: [groff] [off-topic] Reliable use of errno
Date: Sun, 19 Aug 2018 15:08:26 +0100

Hi Colin,

> Writing "== -1" implies a reading that any other value would indicate
> success;

Or it implies it's being coded to the spec.

> writing "!= 0" implies a reading that any other value would indicate
> an error; writing "< 0" implies a reading that it depends on the sign
> of the hypothetical not-zero-or-minus-one return value.

Both of these allow for more values than -1, `stuttering' the human
reader, and potentially troubling the static analyser.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]