diff options
Diffstat (limited to 'common/os/print.h')
-rw-r--r-- | common/os/print.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/common/os/print.h b/common/os/print.h index ea550411..47893adf 100644 --- a/common/os/print.h +++ b/common/os/print.h @@ -36,7 +36,16 @@ extern "C" { #endif #ifndef HAVE_VSNPRINTF -int vsnprintf(char *str, size_t n, const char *format, va_list ap); +/* NOTE: + * + * This is only very limited implementation for our internal purposes. It + * doesn't conform to C99/POSIX + * - limited conversion specifiers + * - returns written number of characters instead of number what would be + * written + */ +int tight_vsnprintf(char *str, size_t n, const char *format, va_list ap); +#define vsnprintf tight_vsnprintf #endif #ifdef __cplusplus |