You need to #define TEST to run the code as is. main() is conditionally compiled because this is a library function.
Tom Gunn 1,164 Practically a Master Poster
Tom Gunn 1,164 Practically a Master Poster
Tom Gunn 1,164 Practically a Master Poster
Tom Gunn 1,164 Practically a Master Poster
Tom Gunn 1,164 Practically a Master Poster
Tom Gunn 1,164 Practically a Master Poster
Salem commented: Many fine points +36
Dave Sinkula commented: This will be a good post to refer to in the future (but I've come to expect that). +26
mrnutty commented: Good job +2
Salem commented: Nice, so few people get the %p thing right. Though the C++ would have been better with a reinterpret_cast +36
Tom Gunn 1,164 Practically a Master Poster
tux4life commented: I appreciate you for taking the time to answer this question in a more correct way than I did :P +20
Tom Gunn 1,164 Practically a Master Poster
Tom Gunn 1,164 Practically a Master Poster