(fd: i32, s: &str)
| 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]) { |
no test coverage detected