logoalt Hacker News

ueckertoday at 7:52 PM1 replyview on HN

BTW: I was experimenting a bit more with string and string view (strv) types in my e toy library: https://codeberg.org/uecker/noplate/

The tests are maybe better examples than those on godbolt. https://codeberg.org/uecker/noplate/src/branch/main/tests/st...


Replies

whytevuhunitoday at 8:11 PM

How does strv2cstr work? I assume it doesn't allocate, so not sure how it can add a null terminator.

show 1 reply