2 ms·Many C APIs do exactly that: they require you (the caller) to malloc your own memory, then pass in a pointer.by Xuzz 16y agoMany C APIs do exactly that: they require you (the caller) to malloc your own memory, then pass in a pointer.