atexit(3)はGoのdeferみたいな感じだけどわね

> The atexit() function registers the given function to be called at program exit, whether via exit(3) or via return from the program's main(). Functions so registered are called in reverse order; no arguments are passed.

Follow

本日の というやつ。
まったく知らなかった……。ちゃんとstack方式で逆順実行してくれると明記されてて素敵。
QT: mastodon.zunda.ninja/@zundan/1
[Ref.]

zunda  
atexit(3)はGoのdeferみたいな感じだけどわね > The atexit() function registers the given function to be called at program exit, whether via exit(3) or via retu...
Sign in to participate in the conversation
Mastodon

Experimental private instance. Running on FreeBSD!