Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
15
pub(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_open
Function · 0.85
shm_unlink
Function · 0.85
fsopen
Function · 0.85
move_mount
Function · 0.85
open_tree
Function · 0.85
fspick
Function · 0.85
fsconfig_set_flag
Function · 0.85
fsconfig_set_string
Function · 0.85
fsconfig_set_binary
Function · 0.85
fsconfig_set_fd
Function · 0.85
fsconfig_set_path
Function · 0.85
fsconfig_set_path_empty
Function · 0.85
Calls
1
as_ptr
Method · 0.45
Tested by
no test coverage detected