libc_stdhandle/lib.rs
1//! Helper functions for retrieving stdin, stdout, stderr to work with `libc`.
2#![warn(missing_docs)]
3
4extern crate libc;
5
6use libc::FILE;
7
8extern "C" {
9 /// expression of type FILE* associated with the input stream
10 #[link_name = "libc_stdhandle_rs_stdin"]
11 pub fn stdin() -> * mut FILE;
12
13 /// expression of type FILE* associated with the output stream
14 #[link_name = "libc_stdhandle_rs_stdout"]
15 pub fn stdout() -> * mut FILE;
16
17 /// expression of type FILE* associated with the error output stream
18 #[link_name = "libc_stdhandle_rs_stderr"]
19 pub fn stderr() -> * mut FILE;
20}