News for hackers. Stuff that matters.
Re:You Can't Always Hash Pointers in C by tomsmeding on Tuesday May 31, 2016 @07:13AM (#11805861)
You expect a pointer to represent a location in linear memory, so you expect ptr - array_start to be a negative number if ptr is before the array, and a number larger than the array size if it's after the array.

There are no comments on this comment yet.