Skip to content

Commit 9742c75

Browse files
committed
Auto merge of #2533 - devnexen:win32_stdio_more, r=JohnTitor
windows add printf/fprintf close #2241
2 parents 4f74e6e + 8c531bf commit 9742c75

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/semver/windows.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ fgets
199199
fileno
200200
fopen
201201
fpos_t
202+
fprintf
202203
fputc
203204
fputs
204205
fread
@@ -257,6 +258,7 @@ pclose
257258
perror
258259
pipe
259260
popen
261+
printf
260262
ptrdiff_t
261263
putchar
262264
puts

src/windows/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ extern "C" {
319319
pub fn feof(stream: *mut FILE) -> c_int;
320320
pub fn ferror(stream: *mut FILE) -> c_int;
321321
pub fn perror(s: *const c_char);
322+
pub fn printf(format: *const c_char, ...) -> ::c_int;
323+
pub fn fprintf(stream: *mut FILE, format: *const c_char, ...) -> ::c_int;
322324
pub fn atoi(s: *const c_char) -> c_int;
323325
pub fn strtod(s: *const c_char, endp: *mut *mut c_char) -> c_double;
324326
pub fn strtof(s: *const c_char, endp: *mut *mut c_char) -> c_float;

0 commit comments

Comments
 (0)