From e4eec2a1c5dfb0564738ba453e0a48c9e3e65f43 Mon Sep 17 00:00:00 2001 From: Daniel Brooks <db48x@db48x.net> Date: Wed, 7 Oct 2020 04:35:31 -0700 Subject: [PATCH] add clearerr --- src/unix/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 21439c8a..ef24a1cb 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -508,6 +508,7 @@ extern "C" { pub fn fsetpos(stream: *mut FILE, ptr: *const fpos_t) -> c_int; pub fn feof(stream: *mut FILE) -> c_int; pub fn ferror(stream: *mut FILE) -> c_int; + pub fn clearerr(stream: *mut FILE); pub fn perror(s: *const c_char); pub fn atoi(s: *const c_char) -> c_int; #[cfg_attr( -- GitLab