Test Header HTML Code

atexit

#include <stdlib.h>
#include <stdio.h>

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
    atexit(goodbyte); //goodbyte will be called after exit
    printf("hello\n");
    return 0;
}

posted on 2011-02-11 21:51  宁静的水泡  阅读(143)  评论(0编辑  收藏  举报

导航

Test Rooter HTML Code