#include <utmp.h> void endutent(void);
endutent() closes the utmp file. It should be called when the user code is done accessing the file with the other functions.