Rust libc

From wikinotes

libc bindings

Documentation

crates.io https://crates.io/crates/libc
github https://github.com/rust-lang/libc

Install

# Cargo.toml

[dependencies]
libc = "0.2"

Usage

extern crate libc;

fn stdin_is_tty() -> bool {
    unsafe { libc::isatty(0) != 0 }
}