CString package:unliftio

A C string is a reference to an array of C characters terminated by NUL.
A string with explicit length information in bytes instead of a terminating NUL (allowing NUL characters in the middle of the string).
Lifted newCString.
Lifted newCStringLen.
Lifted peekCString.
Unlifted withCString.
Unlifted withCStringLen.