From dcb962389c5f71bc25cdb84f3363eed95bad9bdd Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 6 Jul 2019 13:33:55 -0700 Subject: fixes #861 Man pages need to use .adoc suffix --- docs/man/nng_strdup.3.adoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/man/nng_strdup.3.adoc') diff --git a/docs/man/nng_strdup.3.adoc b/docs/man/nng_strdup.3.adoc index 9c2eda4f..91c4854d 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 equivalent to using `<>` +This is logically equivalent to using xref:nng_alloc.3.adoc[`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 -`<>`, or may be deallocated using the -`<>` using the length of the returned string plus +xref:nng_strfree.3.adoc[`nng_strfree()`], or may be deallocated using the +xref:nng_free.3.adoc[`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 @@ -51,6 +51,6 @@ treated the same as `NNG_ENOMEM`. == SEE ALSO [.text-left] -<>, -<>, -<> +xref:nng_alloc.3.adoc[nng_alloc(3)], +xref:nng_free.3.adoc[nng_free(3)], +xref:nng.7.adoc[nng(7)] -- cgit v1.2.3-70-g09d2