diff options
author | Daniel Brooks <db48x@db48x.net> | 2020-10-07 04:35:31 -0700 |
---|---|---|
committer | Daniel Brooks <db48x@db48x.net> | 2020-10-07 04:35:31 -0700 |
commit | e4eec2a1c5dfb0564738ba453e0a48c9e3e65f43 (patch) | |
tree | 9be26db09651a41d9afec9cbc8c61fbed899214c | |
parent | 1818abfb3123fa44c8c3dd071635e85d2170647f (diff) | |
download | rust-libc-e4eec2a1c5dfb0564738ba453e0a48c9e3e65f43.tar.gz |
add clearerr
-rw-r--r-- | src/unix/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 21439c8a49..ef24a1cb33 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( |