Skip to main content

strndup

Function strndup 

Source
pub fn strndup(value: &str, limit: usize) -> String
Expand description

Returns at most limit UTF-8 bytes from a string without splitting characters.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::json_commands::strndup.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::json_commands::strndup.

§Examples

ⓘ
let _result = pharos_native::runtime::json_commands::strndup("value", todo!());