On 10/25/2026 5:42 PM, Lawrence D’Oliveiro wrote:
> On Sun, 25 Oct 2026 16:16:26 -0700, Chris M. Thomasson wrote: >
>> Even analogous, to say, an API that says read n bytes and store into >> buffer. Well, the caller has lifetime of said buffer. The caller makes >> the buffer, calls into the function.
> > So how is the caller supposed to manage that memory?
Managing the memory is the caller’s job in C anyway. That’s the trade-off the language makes. read, recv, and mmap all work this way. This just applies the same contract to the lib’s own object.