Is there a simple library that wraps a C malloc'd char* buffer?

I can’t think of anything off the top of my head. You could use 1-dimension “char” bigarrays, but I guess you already considered this?

Cheers,
Nicolas