#include <oskit/memdebug.h>int memdebug_ptrcheck(void* ptr);
This function runs a host of sanity checks on a given pointer. Of course, these only work if the pointer, ptr is one returned by a memdebug-wrapped allocator. For any errors a bogosity dump is printed.
- ptr
- A pointer to a memory block allocated by some memdebug wrapped allocator.
Returns -1 if the fence posts are trashed so badly that the information in them cannot be trusted. Returns 1 if there was a problem detected but it is not ``fatal''. Returns 0 if everything is A-okay.
memdebug_bogosity