Sample code for 30+ languages & platforms
C

Get Version of Chilkat

Demonstrate how to find out the version of Chilkat at runtime.

Chilkat C Downloads

C
#include <C_CkSFtp.h>
#include <C_CkJsonObject.h>

void ChilkatSample(void)
    {
    HCkSFtp sftp;
    const char *chilkatVersion;
    HCkJsonObject json;

    //  Most Chilkat classes include a Version property.
    //  To find the version of Chilkat, such as "9.5.0.94",
    //  instantiate the object and examine the Version property.

    //  For example:
    sftp = CkSFtp_Create();
    chilkatVersion = CkSFtp_version(sftp);
    printf("%s\n",chilkatVersion);

    //  Most other Chilkat classes also have the Version property
    //  For example:
    json = CkJsonObject_Create();
    printf("%s\n",CkJsonObject_version(json));


    CkSFtp_Dispose(sftp);
    CkJsonObject_Dispose(json);

    }