summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_common.h
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-21 15:18:43 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-21 15:18:43 (GMT)
commita9fefff6203de210093ad23da89cd77c7f61db0f (patch)
treecafa174efd4fee34df695e4383610aad64d86883 /test/vfd_swmr_common.h
parent6e3ad3213deee00607adfe1c88dd4f33b936f746 (diff)
downloadhdf5-a9fefff6203de210093ad23da89cd77c7f61db0f.zip
hdf5-a9fefff6203de210093ad23da89cd77c7f61db0f.tar.gz
hdf5-a9fefff6203de210093ad23da89cd77c7f61db0f.tar.bz2
Add evsnprintf for printing a `va_list` to a buffer or aborting the program on
an overflow or other error.
Diffstat (limited to 'test/vfd_swmr_common.h')
-rw-r--r--test/vfd_swmr_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/vfd_swmr_common.h b/test/vfd_swmr_common.h
index c6916e6..39572a0 100644
--- a/test/vfd_swmr_common.h
+++ b/test/vfd_swmr_common.h
@@ -18,6 +18,7 @@
/* Headers */
/***********/
+#include <stdarg.h>
#include "h5test.h"
/**********/
@@ -97,6 +98,7 @@ H5TEST_DLL void await_signal(hid_t);
H5TEST_DLL hid_t vfd_swmr_create_fapl(bool, bool, bool);
H5TEST_DLL void dbgf(int, const char *, ...) H5_ATTR_FORMAT(printf, 2, 3);
+H5TEST_DLL void evsnprintf(char *, size_t, const char *, va_list);
H5TEST_DLL void esnprintf(char *, size_t, const char *, ...)
H5_ATTR_FORMAT(printf, 3, 4);