Re: How is strlen implemented?



"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.
.



Relevant Pages

  • Re: Terminator et les gays
    ... >> Finalement il n'est pas si con que ça Terminator ... Il n'y a pas de choses plus urgentes dont il doit s'occuper? ... Prev by Date: ...
    (soc.culture.belgium)
  • Dual mice in XMAME
    ... Terminator 2 or Space Gun with a friend. ... Prev by Date: ...
    (alt.games.mame)
  • Sword Of Xanten Competition
    ... Terminator 3???? ... Kindergarten Cop ... Prev by Date: ...
    (uk.rec.competitions)
  • Sword Of Xanten Competition
    ... Terminator 3 ... Kindergarten Cop ... Prev by Date: ...
    (uk.rec.competitions)
  • Twilight Zone pieces 4 sale
    ... Terminator 2, Batman Forever and Elvira. ... Prev by Date: ...
    (rec.games.pinball)