The Client Lib version can be queried with
unsigned int ts3client_getClientLibVersion( | result) ; | á |
char** result
;Parameters
result
Address of a variable that receives the clientlib version string, encoded in UTF-8.
Returns ERROR_ok
on success, otherwise an error code as defined in public_errors.h
. If an error occured, the result string is uninitialized and must not be accessed.
Caution | |
---|---|
The result string must be released using |
An example using ts3client_getClientLibVersion
:
unsigned int error; char* version; error = ts3client_getClientLibVersion(&version); if(error != ERROR_ok) { printf("Error querying clientlib version: %d\n", error); return; } printf("Client library version: %s\n", version); /* Print version */ ts3client_freeMemory(version); /* Release string */