2 ms·
atexit is really just for small programs; it should really be called only from the same source file where main is located. The code smell increases with increas
by kazinator 7y ago
atexit is really just for small programs; it should really be called only from the same source file where main is located. The code smell increases with increasing distance from main. If it's in an adjacent source file which is an inalienable part of that program, it's still okay.