function is_pointer_to_heap

[edit]
static inline int is_pointer_to_heap(void *ptr)