Guest User

Untitled

a guest
Dec 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. __attribute__((constructor))
  4. int pre_main(void)
  5. {
  6. printf("%s\n", __func__);
  7. getchar();
  8. return 0;
  9. }
  10.  
  11. __attribute__((destructor))
  12. int after_main(void)
  13. {
  14. printf("%s\n", __func__);
  15. return 0;
  16. }
  17.  
  18. int main(void)
  19. {
  20. printf("%s\n", __func__);
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment