Josh Dersch wrote:
And I would tend to prefer a loop that involves some
sort of bounds
checking :).
On most common general-purpose computers, you do get that. When one of
the pointers exceeds the segment bounds, you'll get a segfault and the
process will be killed.
I suppose you probably wanted checking against some more restricted
bounds, though.