git.ucc.asn.au
/
progcomp2012.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified Turn Response Protocol, added handling for SIGPIPE, changed placeholder...
[progcomp2012.git]
/
samples
/
forfax
/
main.cpp
diff --git
a/samples/forfax/main.cpp
b/samples/forfax/main.cpp
index
d0cea95
..
2b31fee
100644
(file)
--- a/
samples/forfax/main.cpp
+++ b/
samples/forfax/main.cpp
@@
-6,13
+6,15
@@
using namespace std;
#include <stdio.h>
using namespace std;
#include <stdio.h>
-
+void quit();
Forfax forfax;
int main(int argc, char ** argv)
{
setbuf(stdin, NULL);
setbuf(stdout, NULL);
Forfax forfax;
int main(int argc, char ** argv)
{
setbuf(stdin, NULL);
setbuf(stdout, NULL);
+ atexit(&quit);
+
if (!forfax.Setup())
exit(EXIT_SUCCESS);
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