summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/fitz/printf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/fitz/printf.c b/source/fitz/printf.c
index 8681ac1c..3d0ed19b 100644
--- a/source/fitz/printf.c
+++ b/source/fitz/printf.c
@@ -254,6 +254,17 @@ fz_vfprintf(fz_context *ctx, FILE *file, const char *fmt, va_list old_args)
}
int
+fz_fprintf(fz_context *ctx, FILE *file, const char *fmt, ...)
+{
+ int n;
+ va_list ap;
+ va_start(ap, fmt);
+ n = fz_vfprintf(ctx, file, fmt, ap);
+ va_end(ap);
+ return n;
+}
+
+int
fz_snprintf(char *buffer, int space, const char *fmt, ...)
{
int n;