docs/DYNBUF: clarify documentation for Curl_dyn_ptr and Curl_dyn_uptr

Closes #8606
This commit is contained in:
Ian Blanes 2022-03-28 09:39:09 +02:00 committed by Daniel Stenberg
parent 9e5bd9ba19
commit 884098665d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -84,9 +84,9 @@ larger than the buffer length.
char *Curl_dyn_ptr(const struct dynbuf *s); char *Curl_dyn_ptr(const struct dynbuf *s);
``` ```
Returns a `char *` to the buffer if it has a length, otherwise a NULL. Since Returns a `char *` to the buffer if it has a length, otherwise may return
the buffer may be reallocated, this pointer should not be trusted or used NULL. Since the buffer may be reallocated, this pointer should not be trusted
anymore after the next buffer manipulation call. or used anymore after the next buffer manipulation call.
## uptr ## uptr
@ -94,9 +94,9 @@ anymore after the next buffer manipulation call.
unsigned char *Curl_dyn_uptr(const struct dynbuf *s); unsigned char *Curl_dyn_uptr(const struct dynbuf *s);
``` ```
Returns an `unsigned char *` to the buffer if it has a length, otherwise a Returns an `unsigned char *` to the buffer if it has a length, otherwise may
NULL. Since the buffer may be reallocated, this pointer should not be trusted return NULL. Since the buffer may be reallocated, this pointer should not be
or used anymore after the next buffer manipulation call. trusted or used anymore after the next buffer manipulation call.
## len ## len