摘要: 在C语言中,如果使用GCC的话,可以通过attribute关键字声明constructor和destructor(C语言中如何在main函数开始前执行函数) #include <stdio.h> __attribute((constructor)) void before_main() { prin 阅读全文
posted @ 2016-07-12 14:41 不止所见 阅读(4737) 评论(1) 推荐(0)