2 ms·
>Simple C-style ABIs make memory management straightforward (n.b. but error-prone, and certainly not easy). The idea is to use C-style memory management: you p
by GoblinSlayer 3y ago
>Simple C-style ABIs make memory management straightforward (n.b. but error-prone, and certainly not easy).
The idea is to use C-style memory management: you provide a buffer, where the string is copied, for example of string return see getenv_r function: https://man.netbsd.org/getenv.3 https://man.netbsd.org/getenv.3
In C++ it's more similar to std::span.