aboutsummaryrefslogtreecommitdiffstats
path: root/asprintf.c
blob: 7f565a39df9c41b72230139eb6d65e8c85c96fcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* See LICENSE file for copyright and license details. */
#include "libsimple.h"


int
libsimple_asprintf(char **strp, const char *fmt, ...)
{
	va_list ap;
	int r;
	va_start(ap, fmt);
	r = libsimple_vasprintf(strp, fmt, ap);
	va_end(ap);
	return r;
}