aboutsummaryrefslogtreecommitdiff
path: root/docs/man/nng_strdup.3.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/man/nng_strdup.3.adoc')
-rw-r--r--docs/man/nng_strdup.3.adoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/man/nng_strdup.3.adoc b/docs/man/nng_strdup.3.adoc
index 23e23a43..6efacc37 100644
--- a/docs/man/nng_strdup.3.adoc
+++ b/docs/man/nng_strdup.3.adoc
@@ -26,14 +26,14 @@ char *nng_strdup(const char *src);
The `nng_strdup()` duplicates the string _src_ and returns it.
-This is logically equiavlent to using <<nng_alloc.3#,`nng_alloc()`>>
+This is logically equiavlent to using `<<nng_alloc.3#,nng_alloc()>>`
to allocate a region of memory of `strlen(s) + 1` bytes, and then
using `strcpy()` to copy the string into the destination before
returning it.
The returned string should be deallocated with
-<<nng_strfree.3#,`nng_strfree()`>>, or may be deallocated using the
-<<nng_free.3#,`nng_free()`>> using the length of the returned string plus
+`<<nng_strfree.3#,nng_strfree()>>`, or may be deallocated using the
+`<<nng_free.3#,nng_free()>>` using the length of the returned string plus
one (for the `NUL` terminating byte).
IMPORTANT: Do not use the system `free()` or similar functions to deallocate