diff options
| author | Garrett D'Amore <garrett@damore.org> | 2019-07-06 13:33:55 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2019-07-06 13:33:55 -0700 |
| commit | dcb962389c5f71bc25cdb84f3363eed95bad9bdd (patch) | |
| tree | 2a94b72596df4ff76081eb74632af0ce273517b1 /docs/man/nng_strdup.3.adoc | |
| parent | 7b6e73f23104a50b898da1065cf9d3bf8b6a3bca (diff) | |
| download | nng-dcb962389c5f71bc25cdb84f3363eed95bad9bdd.tar.gz nng-dcb962389c5f71bc25cdb84f3363eed95bad9bdd.tar.bz2 nng-dcb962389c5f71bc25cdb84f3363eed95bad9bdd.zip | |
fixes #861 Man pages need to use .adoc suffix
Diffstat (limited to 'docs/man/nng_strdup.3.adoc')
| -rw-r--r-- | docs/man/nng_strdup.3.adoc | 12 |
1 files changed, 6 insertions, 6 deletions
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 `<<nng_alloc.3#,nng_alloc()>>` +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 -`<<nng_strfree.3#,nng_strfree()>>`, or may be deallocated using the -`<<nng_free.3#,nng_free()>>` 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] -<<nng_alloc.3#,nng_alloc(3)>>, -<<nng_free.3#,nng_free(3)>>, -<<nng.7#,nng(7)>> +xref:nng_alloc.3.adoc[nng_alloc(3)], +xref:nng_free.3.adoc[nng_free(3)], +xref:nng.7.adoc[nng(7)] |
