diff options
Diffstat (limited to 'source/fitz/printf.c')
-rw-r--r-- | source/fitz/printf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/fitz/printf.c b/source/fitz/printf.c index b4fe844a..8a429db6 100644 --- a/source/fitz/printf.c +++ b/source/fitz/printf.c @@ -252,3 +252,14 @@ fz_vfprintf(fz_context *ctx, FILE *file, const char *fmt, va_list old_args) return l; } + +int +fz_snprintf(char *buffer, int space, const char *fmt, ...) +{ + int n; + va_list ap; + va_start(ap, fmt); + n = fz_vsnprintf(buffer, space, fmt, ap); + va_end(ap); + return n; +} |