Trait method lrs::string::ToCStr::to_cstr

Converts the object by copying it.

Syntax

fn to_cstr(&self, buf: &'a mut [u8]) -> Result<&'a mut CStr, Errno>

Arguments

NameDescription
buf

The buffer in which the CStr will be stored.

Return value

Returns the created CStr.