aboutsummaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'text.h')
-rw-r--r--text.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/text.h b/text.h
index 48b630f..8bbb32f 100644
--- a/text.h
+++ b/text.h
@@ -4,6 +4,7 @@
#include <stdbool.h>
#include <time.h>
#include <unistd.h>
+#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -36,6 +37,8 @@ typedef struct {
Text *text_load(const char *filename);
/* file information at time of load or last save */
struct stat text_stat(Text*);
+bool text_printf(Text*, size_t pos, const char *format, ...);
+bool text_vprintf(Text*, size_t pos, const char *format, va_list ap);
/* insert `len' bytes starting from `data' at `pos' which has to be
* in the interval [0, text_size(txt)] */
bool text_insert(Text*, size_t pos, const char *data, size_t len);