sprintf() heap usage

Vasili Galka vvv444@gmail.com
Tue Jul 16 09:40:00 GMT 2013


I've been surprised to discover that using sprintf() leads to
requirement of sbrk(). Can anyone please explain me why?
For gods sake, the function already has output buffer provided. The
lifetime of the function is well defined and it has stack. Why would
it require heap!?

Vasili Galka

More information about the Newlib mailing list