Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- __attribute__((constructor))
- int pre_main(void)
- {
- printf("%s\n", __func__);
- getchar();
- return 0;
- }
- __attribute__((destructor))
- int after_main(void)
- {
- printf("%s\n", __func__);
- return 0;
- }
- int main(void)
- {
- printf("%s\n", __func__);
- return 0;
- }
Add Comment
Please, Sign In to add comment