From owner-freebsd-hackers Wed Feb 12 18:59:20 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA13777 for hackers-outgoing; Wed, 12 Feb 1997 18:59:20 -0800 (PST) Received: from kithrup.com (kithrup.com [205.179.156.40]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id SAA13770 for ; Wed, 12 Feb 1997 18:59:15 -0800 (PST) Received: (from sef@localhost) by kithrup.com (8.6.8/8.6.6) id SAA04282; Wed, 12 Feb 1997 18:57:29 -0800 Date: Wed, 12 Feb 1997 18:57:29 -0800 From: Sean Eric Fagan Message-Id: <199702130257.SAA04282@kithrup.com> To: terry@lambert.org Subject: Re: strlen() question Newsgroups: kithrup.freebsd.hackers 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 Organization: Kithrup Enterprises, Ltd. Cc: hackers@freebsd.org Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.