From eb8a8c5fa0657d8a3d404589d6ad1f954acde935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 31 Dec 2015 12:28:55 +0100 Subject: text: introduce text_newline_insert --- text.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text.h') diff --git a/text.h b/text.h index 685079e..b2783b3 100644 --- a/text.h +++ b/text.h @@ -40,6 +40,8 @@ struct stat text_stat(Text*); bool text_appendf(Text*, const char *format, ...); bool text_printf(Text*, size_t pos, const char *format, ...); bool text_vprintf(Text*, size_t pos, const char *format, va_list ap); +/* inserts a line ending character (depending on file type) */ +bool text_insert_newline(Text*, size_t pos); /* 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); -- cgit v1.2.3