Skip to content

Commit

Permalink
Auto merge of #2533 - devnexen:win32_stdio_more, r=JohnTitor
Browse files Browse the repository at this point in the history
windows add printf/fprintf

close #2241
  • Loading branch information
bors committed Nov 15, 2021
2 parents 4f74e6e + 8c531bf commit 9742c75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/windows.txt
Expand Up @@ -199,6 +199,7 @@ fgets
fileno
fopen
fpos_t
fprintf
fputc
fputs
fread
Expand Down Expand Up @@ -257,6 +258,7 @@ pclose
perror
pipe
popen
printf
ptrdiff_t
putchar
puts
Expand Down
2 changes: 2 additions & 0 deletions src/windows/mod.rs
Expand Up @@ -319,6 +319,8 @@ extern "C" {
pub fn feof(stream: *mut FILE) -> c_int;
pub fn ferror(stream: *mut FILE) -> c_int;
pub fn perror(s: *const c_char);
pub fn printf(format: *const c_char, ...) -> ::c_int;
pub fn fprintf(stream: *mut FILE, format: *const c_char, ...) -> ::c_int;
pub fn atoi(s: *const c_char) -> c_int;
pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double;
pub fn strtof(s: *const c_char, endp: *mut *mut c_char) -> c_float;
Expand Down

0 comments on commit 9742c75

Please sign in to comment.