From 3d3fa690c4f81bf4ed0a2de42c3c8fbb9f4cca5c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 1 May 2018 17:11:32 -0700 Subject: Markup fixes, ensuring links are colored properly. It turns out that when creating cross references, we need to make any text styling (generally literal characters) outside of the link, to avoid having the styling override the link color. (We prefer to have links colored for ease of use.) While here a few other markup, and actual content, errors were fixed. --- docs/man/nng_strdup.3.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 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 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 <> +This is logically equiavlent to using `<>` 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 +`<>`, or may be deallocated using the +`<>` 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 -- cgit v1.2.3-70-g09d2