1. Including the string template brings a large proportion of the iostreams code in as well. I don't think stdlib.h has much effect though. Set your linker options to emit a map file and then look at that in WordPad.
2. scanf?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
OK. It's included all the locale-handling code which basically brought the ENTIRE IOStream library in. It's all referenced in the mapfile (mangled names )
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
C++ has a lot more overhead with certain things. For example, IOStreams is a whole library, whereas C just has struct FILE pointers, and raw file handles.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds