Unicode C
Unicode C
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat Unicode C Downloads
#include <C_CkHttpW.h>
void ChilkatSample(void)
{
HCkHttpW http;
http = CkHttpW_Create();
// Establish 2 cache root directories.
CkHttpW_AddCacheRoot(http,L"c:/example/httpCacheA/");
CkHttpW_AddCacheRoot(http,L"c:/example/httpCacheB/");
wprintf(L"Number of cache roots: %d\n",CkHttpW_getNumCacheRoots(http));
wprintf(L"1st cache root: %s\n",CkHttpW_getCacheRoot(http,0));
wprintf(L"2nd cache root: %s\n",CkHttpW_getCacheRoot(http,1));
// Output:
// Number of cache roots: 2
// 1st cache root: c:/example/httpCacheA/
// 2nd cache root: c:/example/httpCacheB/
CkHttpW_Dispose(http);
}