diff options
author | Brent Cook <bcook@openbsd.org> | 2014-07-28 19:26:15 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-07-29 11:17:22 -0500 |
commit | 35e2d8d0485322558a8c4b726674a5293d6aec37 (patch) | |
tree | ad0d41a52ecaa23306c8207f344598f83cbe16ed /include/stdio.h | |
parent | 02ad0041c4f055c541be15ce3f4df9fd65236004 (diff) | |
download | portable-35e2d8d0485322558a8c4b726674a5293d6aec37.tar.gz portable-35e2d8d0485322558a8c4b726674a5293d6aec37.tar.bz2 portable-35e2d8d0485322558a8c4b726674a5293d6aec37.zip |
add asprintf / vasprintf from OpenSSH portable
ok deraadt@ beck@
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h new file mode 100644 index 0000000..e23fbe5 --- /dev/null +++ b/include/stdio.h | |||
@@ -0,0 +1,11 @@ | |||
1 | #include_next <stdio.h> | ||
2 | |||
3 | #ifndef LIBCRYPTOCOMPAT_STDIO_H | ||
4 | #define LIBCRYPTOCOMPAT_STDIO_H | ||
5 | |||
6 | #ifdef NO_ASPRINTF | ||
7 | int vasprintf(char **str, const char *fmt, va_list ap); | ||
8 | int asprintf(char **str, const char *fmt, ...); | ||
9 | #endif | ||
10 | |||
11 | #endif | ||