Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!swrinde!mips!daver!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.c Subject: Re: NULL as a string terminator Message-ID: <26D019A4.2CF5@tct.uucp> Date: 20 Aug 90 17:10:59 GMT References: <24141@megaron.cs.arizona.edu> <134@blekko.UUCP> <1990Aug20.000227.12867@icc.com> Organization: Teltronics/TCT, Sarasota, FL Lines: 19 According to cbp@icc.com (Chris Preston): >In article <134@blekko.UUCP> skrenta@blekko.UUCP (Rich Skrenta) writes: >>*You* like your non-standard name for '\0', but no one else will >>know what it means, and it's unlikely that it will ever be a Big Win >>for you (like if we start terminating strings with ^A or something). > >Then, it will be a very big win. Yes, but it will never happen. I'm sure that Rich just forgot the smiley. Remember that '\0'-terminated strings are a part of the C language. Get rid of them, and you don't have C any more. It is obvious that most magic numbers should be removed to macro definitions. However, '\0' isn't one of them; it will NEVER change. Not as long as you're programming in C, anyway... -- Chip Salzenberg at Teltronics/TCT ,