diff options
author | David Young <dyoung@hdfgroup.org> | 2020-05-06 19:44:59 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-06 19:44:59 (GMT) |
commit | 696173c28488d13ab85464531c9c52fd12d7ae89 (patch) | |
tree | 368c33997a2e84bee1eee4deed6024978d959c4e /test/vfd_swmr_common.h | |
parent | c07a958e1d047bbe33e544a322720843ae3cfce4 (diff) | |
download | hdf5-696173c28488d13ab85464531c9c52fd12d7ae89.zip hdf5-696173c28488d13ab85464531c9c52fd12d7ae89.tar.gz hdf5-696173c28488d13ab85464531c9c52fd12d7ae89.tar.bz2 |
Add esnprintf that prints to the given buffer, observing the given
buffer size, using vsnprintf(3), but exits with err(3)/errx(3) if the
buffer is too small or if vsnprintf returns < 0.
Diffstat (limited to 'test/vfd_swmr_common.h')
-rw-r--r-- | test/vfd_swmr_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/vfd_swmr_common.h b/test/vfd_swmr_common.h index cd36cc3..c6916e6 100644 --- a/test/vfd_swmr_common.h +++ b/test/vfd_swmr_common.h @@ -97,6 +97,8 @@ 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 esnprintf(char *, size_t, const char *, ...) + H5_ATTR_FORMAT(printf, 3, 4); H5TEST_DLL int fetch_env_ulong(const char *, unsigned long, unsigned long *); |