diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-31 14:12:56 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-31 14:12:56 -0500 |
commit | e5ccfb4ee98da03ac5423c0570a4da33ef85b975 (patch) | |
tree | f8ea09370a84e13843d26f33fe7b3a5ebb24edef /buffer.c | |
parent | d7ae78179cf18bc79703ac2199e0ae03e556430f (diff) |
set ted err to buffer err
Diffstat (limited to 'buffer.c')
-rw-r--r-- | buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -60,6 +60,10 @@ char const *buffer_geterr(TextBuffer *buffer) { return buffer->error; } +void buffer_clearerr(TextBuffer *buffer) { + *buffer->error = '\0'; +} + // set the buffer's error to indicate that we're out of memory static void buffer_out_of_mem(TextBuffer *buffer) { buffer_seterr(buffer, "Out of memory."); |