summaryrefslogtreecommitdiff
path: root/ted-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted-base.c')
-rw-r--r--ted-base.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ted-base.c b/ted-base.c
index 80d14e3..83c8208 100644
--- a/ted-base.c
+++ b/ted-base.c
@@ -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.");
}