Liste des Groupes | Revenir à cl c |
On 2024-12-19, Michael S <already5chosen@yahoo.com> wrote:On Thu, 19 Dec 2024 19:47:28 -0000 (UTC)
Kaz Kylheku <643-408-1753@kylheku.com> wrote:
On 2024-12-19, BlueManedHawk <bluemanedhawk@invalid.invalid>>
wrote:The ‘asprintf’ subroutine is standardized by POSIX.1-2024,
meaning that you can use it now and blame somebody else if it
doesn't work. If you
Regardless of how it is made visible, you can detect it via a
compile test in a configure script, and provide your own if it
wasn't found:
#if !HAVE_ASPRINTF
int asprintf(char **out, const char *fmt, ...)
{
... // more or less trivial to implement using malloc, realloc
and vsprintf
Don't you mean, vsnprintf ?
That detail will become obvious when you try to implement it.
Les messages affichés proviennent d'usenet.