From: Zebity Spring Date: Sat, 21 Sep 2019 07:57:35 +0000 (+1000) Subject: Add ssnprintf2 wrapper variiant definition X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4f6d6f76af0e5a3e23bae810f0709aa6ad298c01;p=collectd.git Add ssnprintf2 wrapper variiant definition --- diff --git a/src/utils/common/common.h b/src/utils/common/common.h index 1ca65054..595ae3e1 100644 --- a/src/utils/common/common.h +++ b/src/utils/common/common.h @@ -69,6 +69,9 @@ char *sstrncpy(char *dest, const char *src, size_t n); __attribute__((format(printf, 3, 4))) int ssnprintf(char *str, size_t size, char const *format, ...); +__attribute__((format(printf, 3, 4))) int ssnprintf2(char *str, size_t size, + char const *format, ...); + __attribute__((format(printf, 1, 2))) char *ssnprintf_alloc(char const *format, ...);