diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-25 17:07:09 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-25 17:07:09 -0500 |
commit | a56f549a266e14cdc00a98e8dc3e154f5ac6c23e (patch) | |
tree | b513d9bbf656fe1ac054e3201fe10ac94de461ef /ted-base.c | |
parent | f6d49d377ac136fc29457b3b4501f0488b6412e3 (diff) |
error box; generally better error handling
Diffstat (limited to 'ted-base.c')
-rw-r--r-- | ted-base.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -16,6 +16,10 @@ char const *ted_geterr(Ted *ted) { return ted->error; } +void ted_clearerr(Ted *ted) { + ted->error[0] = '\0'; +} + static void ted_out_of_mem(Ted *ted) { ted_seterr(ted, "Out of memory."); } |