Test Header HTML Code

2011年2月11日

atexit

摘要: #include #include void bye() { printf("byte\n"); } void goodbyte() { printf("good byte\n"); } int main(int argc, char *argv[]) { atexit(bye); //bye will be called after exit atex... 阅读全文

posted @ 2011-02-11 21:51 宁静的水泡 阅读(149) 评论(0) 推荐(0)

echoall

摘要: #include int main(int argc, char *argv[]) { int i; extern char **environ; for(i = 0; i < argc; i++) { printf("argv[%d]: %s\n", i, argv[i]); } /*argv[argc] is NU... 阅读全文

posted @ 2011-02-11 21:51 宁静的水泡 阅读(261) 评论(0) 推荐(0)

setjmp, longjmp

摘要: #include #include #include static void f1(int, int, int); static void f2(void); static jmp_buf jmpbuffer; int main(int argc, char *argv[]) { int count; /*the value is on stack, it will be ... 阅读全文

posted @ 2011-02-11 21:49 宁静的水泡 阅读(250) 评论(0) 推荐(0)

导航

Test Rooter HTML Code