SHARE
TWEET

Untitled

a guest Mar 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. static char *message;
  5.  
  6. void cleanup(void)
  7. {
  8.     printf("message = \"%s\"\n", message);
  9. }
  10.  
  11. int main(int argc, char *argv[])
  12. {
  13.     char local_message[] = "hello, world";
  14.     message = local_message;
  15.  
  16.     atexit(cleanup);
  17.  
  18.     #ifdef USE_EXIT
  19.         puts("exit(0);");
  20.         exit(0);
  21.     #else
  22.         puts("return 0;");
  23.         return 0;
  24.     #endif
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top