Link to home
Start Free TrialLog in
Avatar of marcoo
marcooFlag for Sweden

asked on

Access shell-variabels.

How can i find  out the name of the user running my c program in c??
Avatar of marcoo
marcoo
Flag of Sweden image

ASKER

sorry in Linux!
ASKER CERTIFIED SOLUTION
Avatar of mmessuri
mmessuri
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marcoo

ASKER

Is it possible to manage it with getenv()??
marcoo:

Off the top of my head, no.  However you could also use:

cuserid()