Function nstd_sys::cstring::nstd_cstring_cap
source · #[no_mangle]
pub extern "C" fn nstd_cstring_cap(
cstring: &NSTDCString<'_>
) -> NSTDUIntAvailable on crate feature
cstring only.Expand description
Returns a C string’s capacity.
This is the max number of bytes the C string can contain without reallocating.
Parameters:
const NSTDCString *cstring- The C string.
Returns
NSTDUInt cap - The C string’s capacity.