#[no_mangle]
pub extern "C" fn nstd_cstring_cap(cstring: &NSTDCString) -> NSTDUInt
Available on crate feature nstd_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.