This is the mail archive of the
mailing list for the newlib project.
sprintf() heap usage
- From: Vasili Galka <vvv444 at gmail dot com>
- To: newlib at sourceware dot org
- Date: Tue, 16 Jul 2013 12:39:22 +0300
- Subject: sprintf() heap usage
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!?