Sign in
◑
Theme
chromium
/
external
/
github.com
/
nih-at
/
libzip
/
refs/heads/main
/
.
/
src
/
compat
/
asprintf.c
blob: b8e34fd7d321ac324cdfb65129b3d00080a31b8f [
file
] [
edit
]
#include
"compat/src_compat.h"
#include
<stdarg.h>
#include
<stdio.h>
int
asprintf
(
char
**
strp
,
const
char
*
fmt
,
...)
{
int
ret
;
va_list ap
;
va_start
(
ap
,
fmt
);
ret
=
vasprintf
(
strp
,
fmt
,
ap
);
va_end
(
ap
);
return
ret
;
}