Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 +SENDMAIL+2.11; site dcl-cs.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!seismo!mcvax!ukc!dcl-cs!stephen From: stephen@dcl-cs.UUCP (Stephen J. Muir) Newsgroups: net.lang.c Subject: Re: Need strnlen(). Message-ID: <797@dcl-cs.UUCP> Date: Mon, 18-Nov-85 18:02:28 EST Article-I.D.: dcl-cs.797 Posted: Mon Nov 18 18:02:28 1985 Date-Received: Thu, 21-Nov-85 06:54:13 EST References: <207@a.sei.cmu.edu> Reply-To: stephen@comp.lancs.ac.uk (Stephen J. Muir) Organization: Department of Computing at Lancaster University. Lines: 14 In article <207@a.sei.cmu.edu> dlc@a.sei.cmu.edu (Daryl Clevenger) writes: >One should never allow a character array to not have a null terminating byte. This is absolute rubbish. If I want character arrays without a terminating null byte then I'm quite entitled to do that. In fact, I *have* to do that as I'm writing interface routines for ADA. "strnlen" is to "strlen" as "strncmp" is to "strcmp". I've written the routine myself now, but I just think that it should be part of the standard library, that's all. -- UUCP: ...!seismo!mcvax!ukc!dcl-cs!stephen DARPA: stephen%comp.lancs.ac.uk@ucl-cs | Post: University of Lancaster, JANET: stephen@uk.ac.lancs.comp | Department of Computing, Phone: +44 524 65201 Ext. 4599 | Bailrigg, Lancaster, UK. Project:Alvey ECLIPSE Distribution | LA1 4YR