3 ms·
I'm salty that after 40 years there isn't a standard slice_t and buffer_t. Then you could have functions in the standard library like. buffer_t allocate_buf
by Gibbon1 2y ago
I'm salty that after 40 years there isn't a standard slice_t and buffer_t.
Then you could have functions in the standard library like.
buffer_t allocate_buffer(size_t sz);
size_t append_slice(buffer_t *dest, slice_t *src);