From: Ian Blanes <> Date: Mon, 28 Mar 2022 07:39:09 +0000 (+0200) Subject: docs/DYNBUF: clarify documentation for Curl_dyn_ptr and Curl_dyn_uptr X-Git-Tag: curl-7_83_0~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=884098665d3f220a374ee4ab5d8667c2cd49b84d;p=thirdparty%2Fcurl.git docs/DYNBUF: clarify documentation for Curl_dyn_ptr and Curl_dyn_uptr Closes #8606 --- diff --git a/docs/DYNBUF.md b/docs/DYNBUF.md index 16aca8a61c..a984a41e47 100644 --- a/docs/DYNBUF.md +++ b/docs/DYNBUF.md @@ -84,9 +84,9 @@ larger than the buffer length. char *Curl_dyn_ptr(const struct dynbuf *s); ``` -Returns a `char *` to the buffer if it has a length, otherwise a NULL. Since -the buffer may be reallocated, this pointer should not be trusted or used -anymore after the next buffer manipulation call. +Returns a `char *` to the buffer if it has a length, otherwise may return +NULL. Since the buffer may be reallocated, this pointer should not be trusted +or used anymore after the next buffer manipulation call. ## uptr @@ -94,9 +94,9 @@ anymore after the next buffer manipulation call. unsigned char *Curl_dyn_uptr(const struct dynbuf *s); ``` -Returns an `unsigned char *` to the buffer if it has a length, otherwise a -NULL. Since the buffer may be reallocated, this pointer should not be trusted -or used anymore after the next buffer manipulation call. +Returns an `unsigned char *` to the buffer if it has a length, otherwise may +return NULL. Since the buffer may be reallocated, this pointer should not be +trusted or used anymore after the next buffer manipulation call. ## len