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?
Ummm, say we wanted to have a buffer and use it. Say: { char buf[2048] = { '\0' }; size_t bytes= foo_read(self, buf, 1024); } A caller provided buffer is normal with a lot of API's out there.