From bea9b4798717b6f4e31085506dfc179eeb8dc17c Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:26 +0200 Subject: Imported Upstream version 0.8.3 --- RichString.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'RichString.c') diff --git a/RichString.c b/RichString.c index fbcb17f..753c8cf 100644 --- a/RichString.c +++ b/RichString.c @@ -8,13 +8,14 @@ #include #include -#include #include #include "debug.h" #include #ifdef HAVE_LIBNCURSESW -#include +#include +#else +#include #endif #define RICHSTRING_MAXLEN 300 @@ -116,6 +117,10 @@ int RichString_findChar(RichString *this, char c, int start) { #endif +void RichString_prune(RichString* this) { + this->len = 0; +} + void RichString_setAttr(RichString *this, int attrs) { RichString_setAttrn(this, attrs, 0, this->len - 1); } -- cgit v1.2.3