4 ms·
> I'm a fan of creating a struct that has a uint8_t* and a length, and using that for all buffers, including strings. Unsurprisingly, "record strings" are what
by masklinn 10y ago
> I'm a fan of creating a struct that has a uint8_t* and a length, and using that for all buffers, including strings.
Unsurprisingly, "record strings" are what most every language even just slightly higher-level than C does: C++, Rust, Swift, Go, …