ClientApi::GetUser()

Get current user setting.

Virtual?

No

 

Class

ClientApi

 

Arguments

None

 

Returns

const StrPtr &

a reference to the user setting

Notes

See GetClient() for more about the StrPtr return value.

Example

The following example demonstrates the usage of GetUser().

ClientApi client;
printf( "Your username is %s\n", client.GetUser().Text() );

Executing the preceding code as testuser produces the following output:

Your username is testuser