From owner-freebsd-hackers Thu Feb 13 14:53:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA15855 for hackers-outgoing; Thu, 13 Feb 1997 14:53:37 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id OAA15841 for ; Thu, 13 Feb 1997 14:53:30 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id PAA01765; Thu, 13 Feb 1997 15:52:59 -0700 From: Terry Lambert Message-Id: <199702132252.PAA01765@phaeton.artisoft.com> Subject: Re: strlen() question To: joerg_wunsch@uriah.heep.sax.de Date: Thu, 13 Feb 1997 15:52:59 -0700 (MST) Cc: hackers@FreeBSD.ORG In-Reply-To: from "J Wunsch" at Feb 13, 97 11:04:49 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > | style(9) - Kernel source file style guide > > > > See, there's the problem: libc is a user space library, not > > a kernel source file. > > But that wasn't what you claimed being your original problem, right? > I wonder when you ever admit being wrong for the first time... I said that strlen() took a NULL terminated string. I corrected it to 0 terminated string to make the nit-pickers happy. "NUL" with one "L" is the invention of a Pascal programmer with nothing better to do than to make noises about sign-extension on non-two's complement hardware for type demotion of 0 to character. > The title line of style(9) is slightly misleading. If you have had > looked into it instead of just mumbling about it, you would have > noticed that it covers several userland style issues as well. Ah. So you are saying it is out of date. PS: A style guide is not going to dictate to me anything about user land coding style for a given platform. Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.