Example: lr_whoami

In the following example, lr_whoami retrieves information about a Vuser and places it into a message string. The message string contains Vuser login information that connects with a server.

Memory for vuser_group is allocated automatically. Do not alter the string.

int id, scid;
char *vuser_group;
lr_whoami(&id, &vuser_group, &scid);
lr_message( "Group: %s, vuser id: %d, scenario id %d", vuser_group, id, scid);