MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / c_str

Function c_str

src/backend/libc/conv.rs:15–17  ·  view source on GitHub ↗
(c: &CStr)

Source from the content-addressed store, hash-verified

13#[cfg(not(windows))]
14#[inline]
15pub(super) fn c_str(c: &CStr) -> *const c::c_char {
16 c.as_ptr().cast()
17}
18
19#[cfg(not(any(
20 windows,

Callers 15

shm_openFunction · 0.85
shm_unlinkFunction · 0.85
fsopenFunction · 0.85
move_mountFunction · 0.85
open_treeFunction · 0.85
fspickFunction · 0.85
fsconfig_set_flagFunction · 0.85
fsconfig_set_stringFunction · 0.85
fsconfig_set_binaryFunction · 0.85
fsconfig_set_fdFunction · 0.85
fsconfig_set_pathFunction · 0.85
fsconfig_set_path_emptyFunction · 0.85

Calls 1

as_ptrMethod · 0.45

Tested by

no test coverage detected