Commit 17dca61c authored by Pekka Pessi's avatar Pekka Pessi

url.c: updated documentation of url_as_string().

darcs-hash:20060925193540-65a35-a6d0a7171089f53d32d723accbfb5e494691d89e.gz
parent 441434c9
......@@ -81,6 +81,9 @@ int test_quote(void)
BEGIN();
d = url_as_string(home, (url_t *)"sip:joe@example.com");
TEST_S(d, "sip:joe@example.com");
TEST(strlen(EXCLUDED), 23);
TEST(strlen(UNRESERVED), 71);
......
......@@ -1168,7 +1168,15 @@ url_t *url_format(su_home_t *h, char const *fmt, ...)
}
/** Convert @a url to a string allocated from @a home */
/** Convert @a url to a string allocated from @a home.
*
* @param home memory home to allocate the new string
* @param url url to convert to string
*
* The @a url can be a string, too.
*
* @return Newly allocated conversion result, or NULL upon an error.
*/
char *url_as_string(su_home_t *home, url_t const *url)
{
if (url) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment