diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-05-17 20:31:58 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-05-17 20:31:58 +0200 |
commit | d24ff73ec9e1adcef241896b6a05123758cd1692 (patch) | |
tree | 3baafcaa6956296226e9a8c746c12155e4afa995 | |
parent | 8a4b9e050ce37684ebb097f5e9d54c9b2e415e0d (diff) | |
download | curl-bagder/dynbuf-return-null.tar.gz |
fixup mention the NULL return in the docs toobagder/dynbuf-return-null
-rw-r--r-- | docs/DYNBUF.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/DYNBUF.md b/docs/DYNBUF.md index 3ab059bae..550477ee1 100644 --- a/docs/DYNBUF.md +++ b/docs/DYNBUF.md @@ -60,17 +60,17 @@ larger than the buffer length. char *Curl_dyn_ptr(const struct dynbuf *s); -Returns a `char *` to the buffer. 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 a NULL. Since +the buffer may be reallocated, this pointer should not be trusted or used +anymore after the next buffer manipulation call. ## uptr unsigned char *Curl_dyn_uptr(const struct dynbuf *s); -Returns an `unsigned char *` to the buffer. 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 a +NULL. Since the buffer may be reallocated, this pointer should not be trusted +or used anymore after the next buffer manipulation call. ## len |