Date: Wed, 12 Feb 1997 18:57:29 -0800 From: Sean Eric Fagan <sef@Kithrup.COM> To: terry@lambert.org Cc: hackers@freebsd.org Subject: Re: strlen() question Message-ID: <199702130257.SAA04282@kithrup.com> In-Reply-To: <199702130204.TAA01285.kithrup.freebsd.hackers@phaeton.artisoft.com> References: <199702130137.RAA16421@vader.cs.berkeley.edu> from "Satoshi Asami" at Feb 12, 97 05:37:05 pm
next in thread | previous in thread | raw e-mail | index | archive | help
In article <199702130204.TAA01285.kithrup.freebsd.hackers@phaeton.artisoft.com> you write: >Heh. You and Sean. "NULL" is an untyped 0. Actually, it's a 0 >terminated string. NO NO NO! ptr = 0; and ptr = NULL; are the equivalent. That does *not* mean that NULL is 0. NULL is allowed to be other things -- on one system, it was 0xffff:0x0000. And char need not be only 7 bits. "NUL" is the ASCII name for the octet of all zero bits. NULL is something completely different. (Note that I wouldn't be this pedantic normally, but this is *Terry* saying this, so I felt kinda obligated ;).) Sean.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702130257.SAA04282>