Skip to content
Snippets Groups Projects
Commit 632f9f18 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

fpending

parent 9b0c74b9
No related branches found
No related tags found
No related merge requests found
Pipeline #1867 passed with warnings
Subproject commit eb7204830786d7cbb776c6a878c7a59569840484
Subproject commit a4ddc38063ddb2f2ff1b17f772b8b50f7f3baecd
......@@ -390,6 +390,13 @@ pub extern "C" fn fopen(filename: *const c_char, mode: *const c_char) -> *mut FI
}
}
#[no_mangle]
pub extern "C" fn __fpending(stream: *mut FILE) -> size_t {
let mut stream = unsafe { &mut *stream }.lock();
stream.writer.inner.buf.len() as size_t
}
/// Insert a character into the stream
#[no_mangle]
pub extern "C" fn fputc(c: c_int, stream: *mut FILE) -> c_int {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment