[asterisk-users] Single = sign and double == sign.What is the difference and when to use the two properly?
Steve Edwards
asterisk.org at sedwards.com
Fri Jan 11 13:25:01 CST 2013
On Fri, 11 Jan 2013, jon pounder wrote:
> I try to write comparisons as != where possible and then there is no
> confusion and less mistakes possible. Most compilers will warn on the
> example below now.
Or you can write comparisons as 'constant operator variable' like:
if (0 == onhook)
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list