Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

cunts

Name: cunt 2012-01-23 19:11

How to get the username of the current user in a string in C++?

Name: youguys suck nigger penis 2012-01-23 19:19

you cunts dont know shit

Name: Anonymous 2012-01-23 19:29

If you're fucking too stupid to use getenv("user"), you don't belong here.

Name: Anonymous 2012-01-23 19:31

>>3
or "USERNAME"

Name: Anonymous 2012-01-23 19:48

>>1

You lost me at

  static iterator_t *ptr = NULL;

Doh!

Name: cunt 2012-01-23 19:51

>>5
Wrong fucking thread, cunt

Name: Anonymous 2012-01-23 19:54

>>3
Yo homegirl, that is an OS specific solution. In other words, that won't fucking work on some computers. Now run along and play with your dolls you mental midget you.

Name: Anonymous 2012-01-23 19:55

>>7
A username is OS specific. But any POSIX conforming OS will support that.

Name: Anonymous 2012-01-23 21:40

KUNT-no KU desu yo! (Kono bango wa.)

Name: Anonymous 2012-01-23 21:41

>>7
JAVA > C

Name: Anonymous 2012-01-23 21:45

>>10

You douche, you gave these dubs to me.

Name: Anonymous 2012-01-23 22:12


char* EnterpriseCrossPlatformGetUserName()
{
    return getenv(
#ifdef WIN32
    "USERNAME"
#else
    "user"   
    );
}

Name: Anonymous 2012-01-23 22:20

>>12

Forgot your #endif, "faggot"

Name: Anonymous 2012-01-23 22:34

>>3
The concept of a user is OS-dependent.

Name: Anonymous 2012-01-25 17:35

>>12
what a badass

Name: Anonymous 2012-01-28 13:41

cun tou ~

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List