Modified Turn Response Protocol, added handling for SIGPIPE, changed placeholder...
[progcomp2012.git] / samples / forfax / main.cpp
index d0cea95..2b31fee 100644 (file)
@@ -6,13 +6,15 @@
 using namespace std;
 
 #include <stdio.h>
-
+void quit();
 Forfax forfax;
 int main(int argc, char ** argv)
 {
        setbuf(stdin, NULL);
        setbuf(stdout, NULL);
 
+       atexit(&quit);
+
        if (!forfax.Setup())
                exit(EXIT_SUCCESS);
 
@@ -25,3 +27,8 @@ int main(int argc, char ** argv)
 
        
 }
+
+void quit()
+{
+       cerr << " Forfax quit\n";
+}

UCC git Repository :: git.ucc.asn.au