Commit graph

3 commits

Author SHA1 Message Date
eea7e8f840 strings: Add apfl_string_blank() and doucment apfl_string_copy()
It's really easy to accidentally pass an uninitialized string as dst into
the copy function, which will result in an free() call to an arbitrary
pointer. Maybe it's a better idea to not deinit the dst string before
copying? The documentation at least makes it more clear and the new
apfl_string_blank() function makes it easy to create an empty string.
2022-01-02 17:01:51 +01:00
86e1c1339d strings: Also reset length when moving a string 2021-12-16 22:09:59 +01:00
d094ed7bd5 Initial commit 2021-12-15 21:47:17 +01:00