From 32f4b200970426c55dba28178df920224c764f52 Mon Sep 17 00:00:00 2001 From: Jason Travis Smith Date: Sun, 8 Oct 2017 01:25:33 -0400 Subject: [PATCH] Adding some types and functions from the stdio.h file. --- src/c/stdio.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/c/stdio.rs diff --git a/src/c/stdio.rs b/src/c/stdio.rs new file mode 100644 index 0000000..0d12472 --- /dev/null +++ b/src/c/stdio.rs @@ -0,0 +1,15 @@ +use binding::{CChar, CInt}; + + + +pub enum FILE +{ +} + + + +extern +{ + pub fn fileno(stream: *mut FILE) -> CInt; + pub fn fopen(filename: *const CChar, mode: *const CChar) -> *mut FILE; +}