Skip to content

Commit 3f9a008

Browse files
authored
Add getchar_unlocked and putchar_unlocked
1 parent d8a7046 commit 3f9a008

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ extern {
168168
pub fn setbuf(stream: *mut FILE, buf: *mut c_char);
169169
pub fn getchar() -> c_int;
170170
pub fn putchar(c: c_int) -> c_int;
171+
pub fn getchar_unlocked() -> c_int;
172+
pub fn putchar_unlocked(c: c_int) -> c_int;
171173
pub fn fgetc(stream: *mut FILE) -> c_int;
172174
pub fn fgets(buf: *mut c_char, n: c_int, stream: *mut FILE) -> *mut c_char;
173175
pub fn fputc(c: c_int, stream: *mut FILE) -> c_int;

0 commit comments

Comments
 (0)