summaryrefslogtreecommitdiffstats
path: root/dstring.c
Commit message (Collapse)AuthorAgeFilesLines
* Source / Include Folder (#88)トトも2022-04-161-220/+0
| | | Moved Source Files Into `src` Folder
* dstring: Set a minimum capacity to avoid reallocating for small stringsTavian Barnes2022-01-181-1/+6
|
* Give messages to unconditional assertion failuresTavian Barnes2020-12-021-1/+1
|
* dstring: New dstrdcat(), dstrcatf(), dstrvcatf() functionsTavian Barnes2020-11-281-22/+55
|
* dstring: New dstrvprintf() functionTavian Barnes2020-11-031-9/+15
|
* util: New BFS_FLEX_SIZEOF() macro for more precise flexible array allocationsTavian Barnes2020-10-131-1/+1
| | | | | See http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_282.htm for all the fun behind this.
* dstring: Try to avoid calling vsnprintf() twice in dstrprintf()Tavian Barnes2020-10-011-10/+26
|
* dstring: New dstrndup() functionTavian Barnes2019-09-031-1/+9
|
* dstring: Add a printf()-style creation APITavian Barnes2019-05-231-0/+28
|
* dstring: Add a dstrdup() functionTavian Barnes2019-03-271-5/+14
|
* Add some documentation commentsTavian Barnes2019-02-091-0/+3
|
* dstring: Initialize freshly-allocated stringsTavian Barnes2019-01-311-0/+1
| | | | | | | | | | Previously, a string allocated with dstralloc() had length 0 but no terminating NUL byte there. This was problematic if such a string was used without being modified. In particular, this was reproducible with bfs -ok by not typing any response to the prompt. In that case, uninitialized memory was being tested for a y/n response, with unpredictable results.
* Re-license under the BSD Zero Clause LicenseTavian Barnes2017-07-271-10/+15
|
* printf: Fix embedded nul bytesTavian Barnes2017-06-101-0/+4
| | | | Fixes #26.
* dstring: Clean up the API a bit.Tavian Barnes2016-05-221-10/+13
|
* dstring: Split out the dynamic string logic.Tavian Barnes2016-04-131-0/+99