diff options
author | Paul Gardiner <paul@glidos.net> | 2012-05-31 16:38:54 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-05-31 16:38:54 +0100 |
commit | 09f4fac813c208229ba2d33334db2f84be679d58 (patch) | |
tree | dfe1e8bb8ea618692fa6d754312bad9ac9176a31 /fitz/fitz-internal.h | |
parent | ae62fb9e522a55ce2390dd20999b4a67392940e0 (diff) | |
download | mupdf-09f4fac813c208229ba2d33334db2f84be679d58.tar.xz |
A few general utility functions added for the sake of the forms work
Diffstat (limited to 'fitz/fitz-internal.h')
-rw-r--r-- | fitz/fitz-internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h index b3f7a73c..475f17d4 100644 --- a/fitz/fitz-internal.h +++ b/fitz/fitz-internal.h @@ -410,6 +410,13 @@ void fz_grow_buffer(fz_context *ctx, fz_buffer *buf); */ void fz_trim_buffer(fz_context *ctx, fz_buffer *buf); +/* + fz_buffer_printf: print formatted to a buffer. The buffer will + grow, but the caller must ensure that no more than 256 bytes are + added to the buffer per call. +*/ +void fz_buffer_printf(fz_context *ctx, fz_buffer *buffer, char *fmt, ...); + struct fz_stream_s { fz_context *ctx; |