diff options
| author | gdamore <gdamore@users.noreply.github.com> | 2025-10-09 01:22:20 +0000 |
|---|---|---|
| committer | gdamore <gdamore@users.noreply.github.com> | 2025-10-09 01:22:20 +0000 |
| commit | edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b (patch) | |
| tree | f3396cdaec643fb87365b5f92df4f92e6644b075 /ref/api/url.html | |
| parent | ecdd21b5f4bd29bc1a88d276a9c8015dd100063b (diff) | |
| download | nng-edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b.tar.gz nng-edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b.tar.bz2 nng-edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b.zip | |
deploy: 9c834956456924df7c885ab8b79573721acaff5c
Diffstat (limited to 'ref/api/url.html')
| -rw-r--r-- | ref/api/url.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ref/api/url.html b/ref/api/url.html index a38c2a1c..3d448fad 100644 --- a/ref/api/url.html +++ b/ref/api/url.html @@ -293,7 +293,7 @@ the query-information (the part following a ‘?’) and fragment if they are not. The returned string will not include the leading ‘?’ or ‘#’ characters.</p> <p>Note that any strings returned by these functions are only valid until -<em>url</em> is freed with <a href="../../api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p> +<em>url</em> is freed with <a href="../api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p> <h2 id="format-a-url"><a class="header" href="#format-a-url">Format a URL</a></h2> <pre><code class="language-c">int nng_url_sprintf(char *buf, size_t bufsz, const nng_url *url); </code></pre> @@ -322,7 +322,7 @@ and creates a dynamically allocated <code>nng_url</code>, returning it in <em>ur <span class="mdbook-alerts-icon"></span> important </p> -<p>Only <a href="../../api/url.html#destroy-a-url"><code>nng_url_free</code></a> should be used to deallocate <code>nng_url</code> objects.</p> +<p>Only <a href="../api/url.html#destroy-a-url"><code>nng_url_free</code></a> should be used to deallocate <code>nng_url</code> objects.</p> </div> <h2 id="clone-a-url"><a class="header" href="#clone-a-url">Clone a URL</a></h2> <pre><code class="language-c">int nng_url_clone(nng_url **dup, const nng_url *url); @@ -332,8 +332,8 @@ and creates a dynamically allocated <code>nng_url</code>, returning it in <em>ur <pre><code class="language-c">void nng_url_free(nng_url *url); </code></pre> <p>The <a name="a013"></a><code>nng_url_free</code> function destroy an <code>nng_url</code> object created with -either <a href="../../api/url.html#parse-a-url"><code>nng_url_parse</code></a> or <a href="../../api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p> -<p>This is the only correct way to destroy an <a href="../../api/url.html#url-structure"><code>nng_url</code></a> object.</p> +either <a href="../api/url.html#parse-a-url"><code>nng_url_parse</code></a> or <a href="../api/url.html#destroy-a-url"><code>nng_url_free</code></a>.</p> +<p>This is the only correct way to destroy an <a href="../api/url.html#url-structure"><code>nng_url</code></a> object.</p> <h2 id="update-a-url-port"><a class="header" href="#update-a-url-port">Update a URL Port</a></h2> <pre><code class="language-c">void nng_url_resolve_port(nng_url *url, uint32_t port); </code></pre> |
