Re: man 3 switch

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

 



On 16Nov2009 10:54, Rick Stevens <ricks@xxxxxxxx> 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 <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

I am perfectly capable of cooking myself.       - snail@xxxxxxxxx

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux