Module

std::cstr

source

Re-exported from core::cstr.

NUL-terminated strings for C interfaces.

Types

CStrA borrowed, process-lifetime NUL-terminated string.

Functions

cstr_lenLength 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.