atexit
Header File
#include <stdlib.h>
Function Prototype
int atexit(void (*func)(void))Function
他讓你能註冊 exit handler,同一個 function 能註冊多次,他的結構類似 stack,先註冊的後執行
Remark
當 exec() 被呼叫時,註冊的 exit handler 會被清除
#include <stdlib.h>
int atexit(void (*func)(void))他讓你能註冊 exit handler,同一個 function 能註冊多次,他的結構類似 stack,先註冊的後執行
當 exec() 被呼叫時,註冊的 exit handler 會被清除