Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Give messages to unconditional assertion failures | Tavian Barnes | 2020-12-02 | 1 | -1/+1 |
| | |||||
* | dstring: New dstrdcat(), dstrcatf(), dstrvcatf() functions | Tavian Barnes | 2020-11-28 | 1 | -22/+55 |
| | |||||
* | dstring: New dstrvprintf() function | Tavian Barnes | 2020-11-03 | 1 | -9/+15 |
| | |||||
* | util: New BFS_FLEX_SIZEOF() macro for more precise flexible array allocations | Tavian Barnes | 2020-10-13 | 1 | -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 Barnes | 2020-10-01 | 1 | -10/+26 |
| | |||||
* | dstring: New dstrndup() function | Tavian Barnes | 2019-09-03 | 1 | -1/+9 |
| | |||||
* | dstring: Add a printf()-style creation API | Tavian Barnes | 2019-05-23 | 1 | -0/+28 |
| | |||||
* | dstring: Add a dstrdup() function | Tavian Barnes | 2019-03-27 | 1 | -5/+14 |
| | |||||
* | Add some documentation comments | Tavian Barnes | 2019-02-09 | 1 | -0/+3 |
| | |||||
* | dstring: Initialize freshly-allocated strings | Tavian Barnes | 2019-01-31 | 1 | -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 License | Tavian Barnes | 2017-07-27 | 1 | -10/+15 |
| | |||||
* | printf: Fix embedded nul bytes | Tavian Barnes | 2017-06-10 | 1 | -0/+4 |
| | | | | Fixes #26. | ||||
* | dstring: Clean up the API a bit. | Tavian Barnes | 2016-05-22 | 1 | -10/+13 |
| | |||||
* | dstring: Split out the dynamic string logic. | Tavian Barnes | 2016-04-13 | 1 | -0/+99 |