M
msc
Hi guys,
How to get the user information like userid written in C
language.
How to get the user information like userid written in C
language.
Hi guys,
How to get the user information like userid written in C
language.
You can't do this in standard C - you'd have to use some operating
system specific extension.
Ask again in a group specialising in your compiler or OS, and consider
whether your OS stores this in the user's environment or something.
msc said:Hi guys,
How to get the user information like userid written in C
language.
Hi guys,
How to get the user information like userid written in C
language.
Flash said:You can't in standard C so you will have to ask on a group dedicated to
your system.
Stan Milam said:True. Usually the operating system has some environment variable used
to identify the user. Under Windoze it is "username" and with UNIX it
is usually "LOGNAME." So, look around on your operating system and
determine what environment variable is.
Stan said:True. Usually the operating system has some environment variable used
to identify the user. Under Windoze it is "username" and with UNIX it
is usually "LOGNAME." So, look around on your operating system and
determine what environment variable is.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.