Crate cstring_interop

Source
Expand description

Code to support calling into C APIs which consume strings.

Functions§

from_cstring
Creates an owned String from a given CString.
from_cstring_raw
Creates an owned String from a given raw C string pointer.
with_cstring
Calls the given function with a lifetime-bound CString constructed from the given String.