On 10/26/2026 2:45 PM, Lawrence D’Oliveiro wrote:
> On Mon, 26 Oct 2026 13:33:37 -0700, Chris M. Thomasson wrote:
>
>> Say a lib that has foo_create... Well, the damn called must remember
>> to call foo_destroy, right?
>
> Are you backpedalling from your previous idea that the caller must
> allocate the memory for the library to use?
Where did I say must? I said some libs allow the caller to create their internal state. You are the one that seems to not understand it? Either way, the caller needs to manage things in C. malloc/free, etc.