X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils%2Fcommon%2Fcommon.h;h=1ca650544c36bae19aa366b11d26503646c75654;hb=956a2f4996d9fb0526b6f60c29be9b17c0ad27ba;hp=addf06d336baddd3036e2c4933f42e258774ecdc;hpb=87f8f66a84e78fd37dd2767c032ce74924d31dfd;p=collectd.git diff --git a/src/utils/common/common.h b/src/utils/common/common.h index addf06d3..1ca65054 100644 --- a/src/utils/common/common.h +++ b/src/utils/common/common.h @@ -23,7 +23,7 @@ * Authors: * Florian octo Forster * Niki W. Waibel -**/ + **/ #ifndef COMMON_H #define COMMON_H @@ -66,6 +66,9 @@ typedef struct value_to_rate_state_s value_to_rate_state_t; 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, 1, 2))) char *ssnprintf_alloc(char const *format, ...);