From: Spiro Trikaliotis (Trik-news_at_gmx.de)
Date: 2002-05-16 18:54:23
Hello, "Ullrich von Bassewitz" <uz_at_musoftware.de> wrote: > On Thu, May 16, 2002 at 05:38:18PM +0200, Spiro Trikaliotis wrote: > > no, this is correct ANSI C. If you want to count the terminating NULL > > byte, you have to add one. > > I cannot find anything in the standard that supports this. And gcc does indeed > include the trailing zero, so I would say, Christian is right here, it's a bug. *ARGH* One (me, in this case) should read before writing: I confused sizeof() and the library function strlen(), I'm very sorry and stand corrected! Spiro. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-05-16 18:54:26 CEST