#[no_mangle]
pub extern "C" fn nstd_cstring_new() -> NSTDCString
Available on crate feature nstd_cstring only.
Expand description

Creates a new empty NSTDCString.

Returns

NSTDCString cstring - The new C string.

Panics

This function will panic if allocating for the null byte fails.

Example

use nstd_sys::cstring::nstd_cstring_new;

let cstring = nstd_cstring_new();