Need strnlen().

Stephen J. Muir stephen at dcl-cs.UUCP
Tue Nov 19 09:02:28 AEST 1985


In article <207 at a.sei.cmu.edu> dlc at 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 at ucl-cs	| Post: University of Lancaster,
JANET:	stephen at uk.ac.lancs.comp	|	Department of Computing,
Phone:	+44 524 65201 Ext. 4599		|	Bailrigg, Lancaster, UK.
Project:Alvey ECLIPSE Distribution	|	LA1 4YR



More information about the Comp.lang.c mailing list