This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: snprintf allocates memory?!?
- From: Roland McGrath <roland at redhat dot com>
- To: Jim Meyering <jim at meyering dot net>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 10 Apr 2008 13:39:09 -0700 (PDT)
- Subject: Re: snprintf allocates memory?!?
- References: <87fxttpiup.fsf@rho.meyering.net>
It is obviously preferable for a function that fills a presupplied buffer
not to need to allocate. (I don't know why it does.) But it is not
disallowed by anything, if you want to be pedantic.