cfile 0.1.1

Rust bindings to C FILE
Documentation
//! # Examples
//!
//! ```
//! use std::io::prelude::*;
//! use std::io::{BufReader, SeekFrom};
//! use cfile::CFile;
//!
//! let mut f = CFile::open_tmpfile().unwrap(); // open a tempfile
//!
//! assert_eq!(f.write(b"test").unwrap(), 4); // write something to the stream
//!
//! f.flush().unwrap(); // force to flush the stream
//!
//! assert_eq!(f.seek(SeekFrom::Start(0)).unwrap(), 0); // seek to the beginning of stream
//!
//! let mut r = BufReader::new(f);
//! let mut s = String::new();
//! assert_eq!(r.read_line(&mut s).unwrap(), 4); // read back the text
//! assert_eq!(s, "test");
//! ```

extern crate libc;

mod cfile;
mod lock;

pub use cfile::*;
pub use lock::*;