1
0
forked from GitHub/gf-core

PgfPrinter::nprintf dynamically reallocates the printing buffer if needed

This commit is contained in:
krangelov
2021-08-27 11:57:58 +02:00
parent 8195f8b0cb
commit 5271ddd10b
2 changed files with 26 additions and 16 deletions

View File

@@ -41,6 +41,9 @@ public:
void puts(PgfText *s);
void puts(const char *s);
// buf_size is the expected buffer size. If larger is needed,
// it will be allocated automatically.
void nprintf(size_t buf_size, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
PgfText *get_text();