Name: cunt 2012-01-23 19:11
How to get the username of the current user in a string in C++?
getenv("user"), you don't belong here.
char* EnterpriseCrossPlatformGetUserName()
{
return getenv(
#ifdef WIN32
"USERNAME"
#else
"user"
);
}