HomeManualTopicsTypesSymbols

std::getlogin

returns the login name of the current user

Parameters

None

Result

a string containing the login name of the current user

Description

This function needs I/O-access rights.

Topic

POSIX

See also

std::getuid returns the real user ID
std::getgid returns the real group ID