On 16Nov2009 10:54, Rick Stevens <[email protected]> wrote: | Another example is that a null pointer (or the value "NUL") is not | necessarily zero, only that it is guaranteed to not point at any valid | datum.
Actually, it requires it to behave like 0 in an arithmetic context. But it _doesn't_ require it to be stored as a zero in the machine memory. That's why I cringe whenever I see someone use calloc() or memset() and expect the contents to be valid zeroes of whatever type or valid NULL pointers. Anyway, Frank should get a copy of Kernighan and Richie or a copy of the C89 or C99 ISO standards. The first two are very readable and I'm sure the last is too. Cheers, -- Cameron Simpson <[email protected]> DoD#743 http://www.cskk.ezoshosting.com/cs/ I am perfectly capable of cooking myself. - [email protected] -- fedora-list mailing list [email protected] To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
