News for hackers. Stuff that matters.
Re:Considering C99 for Curl by kazinator on Tuesday November 22, 2022 @11:16AM (#33707373)
But snprintf can be used in C90. You just detect if it's available and use it, as if it were any other platform-specific function.
Re:Considering C99 for Curl by ben0x539 on Tuesday November 22, 2022 @07:53PM (#33713676)
Hm, why do people choose to do that instead of using the fallback case unconditionally? Expectation that platform-provided snprintf is faster?
Re:Considering C99 for Curl by kazinator on Tuesday November 22, 2022 @08:38PM (#33714006)
The platform-provided snprintf is smaller; it takes up zero bytes in your program.