ClientApi::GetConfig()
Get current configuration file.
|
Virtual? |
No |
|
|
Class |
||
|
Arguments |
None |
|
|
Returns |
|
a reference to the config file setting |
Notes
See GetClient() for
more about the StrPtr return value.
If the P4CONFIG has not been set, GetConfig() returns
“noconfig”.
Example
The following example demonstrates the usage of GetConfig().
ClientApi client; printf( "Current P4CONFIG is %s\n", client.GetConfig().Text() );
Executing the preceding code without having specified a configuration file produces the following output:
C:\perforce> a.out Current P4CONFIG is noconfig