mailing list of musl libc
 help / color / mirror / code / Atom feed
fc7183c98d5ba4d229131990e840e78e3f9daa39 blob 345 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>

int vasprintf(char **s, const char *fmt, va_list ap)
{
    size_t l;
    *s = 0;
    FILE *f = open_memstream(s, &l);
    if (!f)
        return -1;

    if ((l = vfprintf(f, fmt, ap)) == -1) {
        free(*s);
        *s = 0;
    }
    fclose(f);
    return l;
}
debug log:

solving d55fe32f ...
found d55fe32f in https://inbox.vuxu.org/musl/CAOt2X9spaSkH_U3TS-pXtnFQsXdq3AVVjLwLbJu0Sq3E4D=Rog@mail.gmail.com/ ||
	https://inbox.vuxu.org/musl/CAOt2X9spaSkH_U3TS-pXtnFQsXdq3AVVjLwLbJu0Sq3E4D=Rog@mail.gmail.com/ ||
	https://inbox.vuxu.org/musl/CAOt2X9uNdorAtmWc6jDT+dVLf1neu5at+9LMrrfBAB20e9dzGQ@mail.gmail.com/
found 08251bc2 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 08251bc20ecd240a53335357341f89000ce5efa6	src/stdio/vasprintf.c

applying [1/3] https://inbox.vuxu.org/musl/CAOt2X9spaSkH_U3TS-pXtnFQsXdq3AVVjLwLbJu0Sq3E4D=Rog@mail.gmail.com/
diff --git a/src/stdio/vasprintf.c b/src/stdio/vasprintf.c
index 08251bc2..d55fe32f 100644

Checking patch src/stdio/vasprintf.c...
Applied patch src/stdio/vasprintf.c cleanly.

skipping https://inbox.vuxu.org/musl/CAOt2X9spaSkH_U3TS-pXtnFQsXdq3AVVjLwLbJu0Sq3E4D=Rog@mail.gmail.com/ for d55fe32f
skipping https://inbox.vuxu.org/musl/CAOt2X9uNdorAtmWc6jDT+dVLf1neu5at+9LMrrfBAB20e9dzGQ@mail.gmail.com/ for d55fe32f
index at:
100644 fc7183c98d5ba4d229131990e840e78e3f9daa39	src/stdio/vasprintf.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).