on
来自「Algorithms for Image Processing and Comp」· 代码 · 共 33 行
TXT
33 行
@c ----------------------------------------------------------------------
@node on_exit, process
@heading @code{on_exit}
@subheading Syntax
@example
#include <atexit.h>
int on_exit(void (*func)(int), int value);
@end example
@subheading Description
This function registers a function to be called when the program is
exiting. The function is passed the @var{value} registered.
@xref{atexit}
@subheading Return Value
Zero on success, nonzero on failure.
@subheading Example
@example
void my_exiter(int arg)
@{
cleanup_me(arg, 1);
@}
on_exit(my_exiter, 4);
@end example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?