diff --git a/dynstring.h b/dynstring.h index 8ac7e1dc..dfed7425 100644 --- a/dynstring.h +++ b/dynstring.h @@ -96,6 +96,10 @@ int DynStringBackspace(pDynString self); /* removes one character at the end from the dynstring */ +int DynStringShorten(pDynString self, int length); + /* + shorten the dynstring to the given length + */ char *Dyn2Cstring(pDynString self); /* convert to C string and delete dynstring. The result must be freed when no longer used.