Re: strlen(), K+1: clarification



"Stephen Howe" <sjhoweATdialDOTpipexDOTcom> said:

Spinoza whined:
We all make "errors". Clive uses an invariant in a for loop, Falconer
post increments, Heathfield forgets memcpy limitations.

So you keep saying and lying.
YOU HAVE FAILED to post a URL of Clive's code. The fact that you CANNOT
means you are lying.
And memcpy() is perfect, as swapping for overlapping arguments is not
well-defined as Willem showed.

I don't know where Spinoza got the idea that I "forget memcpy limitations".
And if Clive used an invariant in a for loop, well, what's wrong with
that? That's good practice. Spinoza seems to be confusing "invariants"
with "values that the compiler cannot assume are invariants" - two very
different things.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages