This is the mail archive of the
newlib@sourceware.org
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
Hi,
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!?
Best,
Vasili Galka