MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / args

Function args

euralios_std/src/env.rs:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 ffi::OsString};
7
8pub fn args() -> impl Iterator<Item = String> {
9 // Convert bytes into a vector of owned strings
10 get_args()
11 .split(|&b| b == 0x03)
12 .map(|arg| String::from_utf8_lossy(arg).into_owned())
13}
14
15pub fn as_str() -> Result<&'static str, Utf8Error> {
16 from_utf8(get_env())

Callers 1

mainFunction · 0.85

Calls 1

get_argsFunction · 0.85

Tested by

no test coverage detected