lr.get_vuser_id

Informational Functions

Returns a Vuser ID number.

int lr.get_vuser_id( ); 

The lr.get_vuser_id function returns the ID of the current Vuser.

Return Values

Returns the ID of the current Vuser. If no ID is available (for example, there are no active Vusers) it returns -1. The return value is a pointer to static data and should only be read, not altered.

Parameterization

Parameterization is not applicable to this function.

Example

In the following example, lr.get_vuser_id retrieves a Vuser ID.

int vuser_id;
vuser_id = lr.get_vuser_id( );