4 ms·
Even things like printf/sprintf act differently from library to library. trust me, read the docs on your lib. Most of the time they are the same but not alwa
by sumtechguy 6y ago
Even things like printf/sprintf act differently from library to library. trust me, read the docs on your lib.
Most of the time they are the same but not always. It is one of those things that looks like it works but in practice there are a ton of gotchas. Most of the more mature libraries are getting better but there are some edge cases out there.
- int_19h 6y agoThey are different mostly because of different standards that libraries support - C90 has a baseline list of %-specifiers, but C99 added a bunch more, and then I think POSIX also has some now? Plus extensions. But I can't think of any implementation that doesn't conform to C90 in that regard. So long as you don't venture into implementation defined / UB category...