How do I approxmate C pointer dereferencing?