Re: How is strlen implemented?
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Sat, 23 Apr 2005 20:13:02 GMT
"Gregory Pietsch" <GKP1@xxxxxxxxx> writes:
> There has to be a null terminator somewhere.
To clarify: This doesn't mean that there's a guarantee that there will
be a null terminator somewhere. It means that if there isn't a null
terminator anyway, you must not call strlen(). The burden is on the
caller.
(I briefly read your statement the other way.)
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.
- References:
- How is strlen implemented?
- From: roy
- Re: How is strlen implemented?
- From: Gregory Pietsch
- How is strlen implemented?
- Prev by Date: Re: mutually referential (Pg 140 K&R2)
- Next by Date: Re: How to convert char []/int into void *? newbie question
- Previous by thread: Re: How is strlen implemented?
- Next by thread: Re: How is strlen implemented?
- Index(es):
Relevant Pages
|