perlguts tells you about whether the tailing nul byte is needed or not.
In reply to Re: readonly access to C-level strings by ambrus in thread readonly access to C-level strings by tfoertsch