logout

Name

logout -- logout utility function

Synopsis

int logout(const char *line);

Description

Given the device line, the logout() function removes the entry from the corresponding /var/run/utmp system file.

Return Value

Zero is returned if there was no entry to remove. A non-zero return value indicates success.