Querying the library version

The Client Lib version can be queried with

unsigned int ts3client_getClientLibVersion(result);á
char** result;
á

Parameters

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]Caution

The result string must be released using ts3client_freeMemory. If an error has occured, the result string is uninitialized and must not be released.

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 */