cuserid

Returns the user login name from the operating system.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

string cuserid()

Example

Compares the user's login to list of authorized users.
{
.
.
if (list_find(auth_list,0,cuserid()) == NULL) {
  printf("Login not authorized!!!");
  escape();
  }
.
.
}