summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-03-16 14:26:53 +0100
committerSebastian Rasmussen <sebras@gmail.com>2017-04-11 17:48:01 +0800
commit5232ccddf461882a69a0e122a635387f8fc6980e (patch)
tree06d60d207ad9a5a09b903249370a3e9f3e1e1b94 /include
parente089b2e2c1d38c5696c7dfd741e21f8f3ef22b14 (diff)
downloadmupdf-5232ccddf461882a69a0e122a635387f8fc6980e.tar.xz
Add fz_asprintf function to allocate a string and format output.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/output.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mupdf/fitz/output.h b/include/mupdf/fitz/output.h
index 48bcc502..9dd3de57 100644
--- a/include/mupdf/fitz/output.h
+++ b/include/mupdf/fitz/output.h
@@ -301,6 +301,11 @@ size_t fz_vsnprintf(char *buffer, size_t space, const char *fmt, va_list args);
size_t fz_snprintf(char *buffer, size_t space, const char *fmt, ...);
/*
+ fz_asprintf: Print to allocated string.
+*/
+char *fz_asprintf(fz_context *ctx, const char *fmt, ...);
+
+/*
fz_tempfilename: Get a temporary filename based upon 'base'.
'hint' is the path of a file (normally the existing document file)