diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-12-31 12:28:55 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-12-31 13:20:12 +0100 |
| commit | eb8a8c5fa0657d8a3d404589d6ad1f954acde935 (patch) | |
| tree | 9ca1a386a9faee8467cc994e4f03ef8452231a39 /text.h | |
| parent | 809a73a6a50d82da27f2df6fb1906c8a6d09d19d (diff) | |
| download | vis-eb8a8c5fa0657d8a3d404589d6ad1f954acde935.tar.gz vis-eb8a8c5fa0657d8a3d404589d6ad1f954acde935.tar.xz | |
text: introduce text_newline_insert
Diffstat (limited to 'text.h')
| -rw-r--r-- | text.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
