[Asterisk-Dev] "true" is -1 or 1 in boolean functions ?

Kevin P. Fleming kpfleming at digium.com
Wed Jan 18 15:34:16 MST 2006


Derek Smithies wrote:

> perhaps someone can provide some information that explains why these magic 
> numbers are acceptable.

They are not magic numbers, they are 'non-zero'. The functions in 
question either return zero or non-zero... rizzo's question was whether 
it was important to standard on the non-zero value or just let it be 
anything at all.



More information about the asterisk-dev mailing list