Given a pointer to some variable.. is there a way to check whether it was statically or dynamically allocated??