It either returns a value if successful or NULL if not. If I'm not mistaken, if I try something like: and Foo() returns NULL, then my program will throw an exception. Is there an easy way to test if ...