www.delorie.com/djgpp/doc/libc-2.01/libc_335.html   search  
Go to the first, previous, next, last section, table of contents.


getlogin

Syntax

#include <unistd.h>

char *getlogin(void);

Description

Get the login ID of the user.

Return Value

Returns the value of the USER environment variable, else the LOGNAME environment variable, else "dosuser".

Example

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