pub fn write_cpio<I, RS, W>(inputs: I, output: W) -> Result<W>where I: Iterator<Item = (NewcBuilder, RS)> + Sized, RS: Read + Seek, W: Write,
Creates a new CPIO archive.
17 18 19 20 21 22 23 24 25
fn main() { let stdin = stdin(); let inputs = stdin .lock() .lines() .map(|path| load_file(&path.unwrap()).unwrap()); write_cpio(inputs, stdout()).unwrap(); }