Commit | Line | Data |
---|---|---|
c0c0989a MJ |
1 | /* |
2 | * SPDX-License-Identifier: LGPL-2.1-or-later | |
a09dac63 | 3 | * |
c0c0989a | 4 | * Copyright (C) 2009 Pierre-Marc Fournier |
a09dac63 PMF |
5 | */ |
6 | ||
a1eb70f9 PMF |
7 | #ifndef UST_SNPRINTF |
8 | #define UST_SNPRINTF | |
9 | ||
10 | #include <stdarg.h> | |
b4051ad8 | 11 | #include <stddef.h> |
a1eb70f9 | 12 | |
ddabe860 | 13 | __attribute__((visibility("hidden"))) |
622671fb | 14 | int ust_safe_vsnprintf(char *str, size_t n, const char *fmt, va_list ap); |
ddabe860 MJ |
15 | |
16 | __attribute__((visibility("hidden"))) | |
622671fb MJ |
17 | int ust_safe_snprintf(char *str, size_t n, const char *fmt, ...) |
18 | __attribute__ ((format (printf, 3, 4))); | |
a1eb70f9 PMF |
19 | |
20 | #endif /* UST_SNPRINTF */ |