Defined in OmniClient.h

char *omniClientMakeRelativeUrl(char const *baseUrl, char const *otherUrl, char *buffer, size_t *bufferSize)

This makes “otherUrl” relative to “baseUrl”.

It attempts to make the shortest URL possible while guaranteeing that you can pass the returned relative URL and baseUrl to omniClientCombineUrls and get back the original otherUrl (except that the returned URL is normalized) buffer rules are the same as omniClientMakeUrl Note that trailing slashes matter here! (“/a/b/c”, “/a/d”) = “../d” (“/a/b/c/”, “/a/d”) = “../../d” The reason is because trailing slashes also matter in the baseUrl for omniClientCombineUrls