MCPcopy Index your code
hub / github.com/RustPython/RustPython / puts

Function puts

crates/stdlib/src/faulthandler.rs:121–132  ·  view source on GitHub ↗
(fd: i32, s: &str)

Source from the content-addressed store, hash-verified

119 // PUTS macro
120 #[cfg(any(unix, windows))]
121 fn puts(fd: i32, s: &str) {
122 let _ = unsafe {
123 #[cfg(windows)]
124 {
125 libc::write(fd, s.as_ptr() as *const libc::c_void, s.len() as u32)
126 }
127 #[cfg(not(windows))]
128 {
129 libc::write(fd, s.as_ptr() as *const libc::c_void, s.len())
130 }
131 };
132 }
133
134 #[cfg(any(unix, windows))]
135 fn puts_bytes(fd: i32, s: &[u8]) {

Callers 12

dump_decimalFunction · 0.85
write_thread_idFunction · 0.85
dump_live_framesFunction · 0.85
dump_frame_from_rawFunction · 0.85
dump_asciiFunction · 0.85
dump_frame_from_refFunction · 0.85
dump_tracebackFunction · 0.85
dump_all_threadsFunction · 0.85
faulthandler_fatal_errorFunction · 0.85
faulthandler_exc_handlerFunction · 0.85

Calls 3

writeFunction · 0.50
as_ptrMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected