Add a mandatory 0 terminator to the buffer and you suddenly get an easy 
compatibility with all C-shaped things (just pass the pointer to the buffer, 
it’s already const char*)

(No, there shouldn’t be restrictions on how many other 0 bytes are there, just 
that there is always one at the end. Whoever cares about integrating with C 
needs to make sure there are no null bytes in the middle, and Nim may just not 
care.)

Reply via email to