Share this page

# 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);

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: