| www.delorie.com/djgpp/doc/libc-2.01/libc_335.html | search |
#include <unistd.h> char *getlogin(void);
Get the login ID of the user.
Returns the value of the USER environment variable, else the
LOGNAME environment variable, else "dosuser".
printf("I am %s\n", getlogin());
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |