NUL-terminated strings for C interfaces.
Types
CStr | A borrowed, process-lifetime NUL-terminated string. |
Functions
cstr_len | Length of a NUL-terminated C string. |
Function declarations
fn cstr_lensource
unsafe fn cstr_len(s: *u8) -> usize { ... }
Length of a NUL-terminated C string. The scan is unbounded: no length is known ahead of it, so it walks until the NUL. Caller: s addresses a live NUL-terminated byte run.