summaryrefslogtreecommitdiff
path: root/src/rep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rep.c')
-rw-r--r--src/rep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/rep.c b/src/rep.c
index 5eda279..4a7fbb5 100644
--- a/src/rep.c
+++ b/src/rep.c
@@ -89,7 +89,10 @@ int replaceSingleFile(r_context* ctx, const char* szIn);
/* Error stuff */
int usage();
-
+void blah(void)
+{
+ printf("exiting\n");
+}
/* ------------------------------------------------------------------------ */
@@ -101,7 +104,7 @@ int main(int argc, char* argv[])
int ch = 0;
- /*
+ /*
* Function return values throughout program are a bit different
*
* 0 = normal operation
@@ -111,6 +114,7 @@ int main(int argc, char* argv[])
int ret = 0;
int r = R_OK;
+ atexit(blah);
/* Enough params? */
if(argc < 2)