Use zeroMem,`copyMem`, moveMem, equalMem to operate on raw memory. In your
case:
const myString = "I change this"
copyMem(cs, cstring(myString), myString.len + 1) # +1 because null byte has
to be copied, too
- How to change the buffer malloc from c code? donydh
- Re: How to change the buffer malloc from c code? endragor
