This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
It seems that sprintf, in libc/stdio/sprintf.c calls _vfprintf_r, which needs <<close>>, <<fstat>>, <<isatty>>, <<lseek>>, <<read>>, <<sbrk>>, <<write>>.
I thought it strange, that operations purely on a buffer, would require supporting OS file subroutines. I can understand why these are necessary for printf, fprintf, but why sprintf?
Can someone explain?
[0] Probably because they are all based on the same BSD code, which wasn't written for embedded systems.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |