diff options
Diffstat (limited to 'src/rep.c')
-rw-r--r-- | src/rep.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |