summaryrefslogtreecommitdiffstats
path: root/dstring.c
Commit message (Collapse)AuthorAgeFilesLines
* 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