#1936 在 Rust 模式 中
1,525 每月下载量
在 205 个 包(6 个直接使用)中使用
为与 libc
一起工作,提供检索 stdin、stdout、stderr 的辅助函数。
开始使用
将以下内容添加到您的 Cargo.toml
[dependencies]
libc-stdhandle = "0.8.2"
然后您可以
extern crate libc_stdhandle;
use libc_stdhandle::*;
unsafe { stdout() }
为与 libc
一起工作,提供检索 stdin、stdout、stderr 的辅助函数。