summaryrefslogtreecommitdiff
path: root/lib/dynbuf.c
Commit message (Collapse)AuthorAgeFilesLines
* curl.se: new homeDaniel Stenberg2020-11-041-1/+1
| | | | Closes #6172
* dynbuf: add Curl_dyn_vaddfDaniel Stenberg2020-09-231-8/+20
| | | | Closes #6004
* dynbuf: make *addf() not require extra mallocsDaniel Stenberg2020-09-231-1/+13
| | | | | | | | | | | | ... by introducing a printf() function that appends directly into a dynbuf: Curl_dyn_vprintf(). This avoids the mandatory extra malloc so if the buffer is already big enough it can just printf directly into it. Since this less-malloc version requires tthe use of a library internal printf function, we only provide this version when building libcurl and not for the dynbuf code that is used when building the curl tool. Closes #5998
* dynbuf: provide curlx_ names for reuse by the curl toolDaniel Stenberg2020-09-141-5/+8
| | | | Closes #5946
* dynbuf: make sure Curl_dyn_tail() zero terminatesDaniel Stenberg2020-09-141-0/+1
| | | | Closes #5959
* terminology: call them null-terminated stringsDaniel Stenberg2020-06-281-1/+1
| | | | | | | | | | | Updated terminology in docs, comments and phrases to refer to C strings as "null-terminated". Done to unify with how most other C oriented docs refer of them and what users in general seem to prefer (based on a single highly unscientific poll on twitter). Reported-by: coinhubs on github Fixes #5598 Closes #5608
* dynbuf: return NULL when there's no buffer lengthDaniel Stenberg2020-05-171-2/+2
| | | | | | | | | ... as returning a "" is not a good idea as the string is supposed to be allocated and returning a const string will cause issues. Reported-by: Brian Carpenter Follow-up to ed35d6590e72c Closes #5405
* ngtcp2: convert to dynbufDaniel Stenberg2020-05-041-2/+1
| | | | Closes #5335
* dynbuf: introduce internal generic dynamic buffer functionsDaniel Stenberg2020-05-041-0/+228
A common set of functions instead of many separate implementations for creating buffers that can grow when appending data to them. Existing functionality has been ported over. In my early basic testing, the total number of allocations seem at roughly the same amount as before, possibly a few less. See docs/DYNBUF.md for a description of the API. Closes #5300