From 06011c29aef19d8ed90ebf48095e1ff2a846ba23 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 29 Nov 2022 02:24:47 +0000 Subject: Prepare for 2.13.0.0, revamp strerr Signed-off-by: Laurent Bercot --- src/libstrerr/strerr_warnl.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/libstrerr/strerr_warnl.c (limited to 'src/libstrerr/strerr_warnl.c') diff --git a/src/libstrerr/strerr_warnl.c b/src/libstrerr/strerr_warnl.c new file mode 100644 index 0000000..17c370d --- /dev/null +++ b/src/libstrerr/strerr_warnl.c @@ -0,0 +1,22 @@ +/* ISC license. */ + +/* MT-unsafe */ + +#include + +#include + +void strerr_warnl (unsigned int n, ...) +{ + if (n) + { + va_list ap ; + char const *v[n] ; + va_start(ap, n) ; + va_arg(ap, unsigned int) ; + for (unsigned int i = 0 ; i < n ; i++) + v[i++] = va_arg(ap, char const *) ; + va_end(ap) ; + strerr_warnv(v, n) ; + } +} -- cgit v1.2.3