get the username in C

How can I get the username with C?
Thank you
Sandy

Comments

  • : How can I get the username with C?
    : Thank you
    : Sandy
    :
    Using gets()
    and clarify what do u want to do then u can get answer properly.

  • I have the solution already. I got the username, login name with an environment variable, which is set by the Win NT 4.
    The command was somethinh like getenv or so.
    Sandy



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories