#include // class spitball is for throwing exceptions. Lets hope someone // can catch it! class spitball { public: char errormsg[256]; int rc; int errno; spitball(char *msg, int exitcode, int errorno=0) {strcpy(errormsg,msg); rc=exitcode; errno=errorno;} char *get(void); operator const char*() {return get();} // conversion function };