diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-03-08 21:45:41 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-03-20 17:14:08 +0000 |
commit | 412cccf2fdec282a4cc1345c551808e6a257dbdd (patch) | |
tree | 2f8917a8d84ba7492500d12586ee5812bc40ab92 /source/fitz | |
parent | cef4820268f18f03c4407d3897abfde012e92204 (diff) | |
download | mupdf-412cccf2fdec282a4cc1345c551808e6a257dbdd.tar.xz |
Add fz_fprintf function.
Diffstat (limited to 'source/fitz')
-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 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; |