avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] C coding question


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] C coding question
Date: Fri, 6 Oct 2006 07:06:08 +0200 (MET DST)

"larry barello" <address@hidden> wrote:

> when mixing bit-wise and logical operations, is it safe to assume
> that (!0 == 1) is true?

I think it is, but would have to look it up in the standard.

Use <stdbool.h>, the type "bool", and the values "true" and "false"
instead.  That's the C99 approach.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)





reply via email to

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