Add sprintf, snprintf, and the scanf family for Windows#5024
Add sprintf, snprintf, and the scanf family for Windows#5024dropbear32 wants to merge 1 commit intorust-lang:mainfrom
sprintf, snprintf, and the scanf family for Windows#5024Conversation
|
The definitions look fine, but what is the story with Cc @ChrisDenton for thoughts here. |
|
For whatever reason, Microsoft moved to defining these inline in They provide |
|
Yep, they're defined inline. We could potentially write our own wrappers around the internal versions but I've not investigated that and including |
Description
This adds declarations for the following functions for Windows:
sprintfsnprintfscanfsscanffscanfAs noted in #2860, these are provided by
legacy_stdio_definitions.libin newer versions of Windows, so they're behind the same gate.This fixes #4995.
Sources
Checklist
libc-test/semverhave been updated*LASTor*MAXare included (see #3131)cd libc-test && cargo test --target mytarget); especially relevant for platforms that may not be checked in CI@rustbot label +stable-nominated