added DynStringShorten

This commit is contained in:
zolliker
2012-08-21 06:44:16 +00:00
parent 0db4463bf3
commit d70dffa00b

View File

@ -96,6 +96,10 @@ int DynStringBackspace(pDynString self);
/* /*
removes one character at the end from the dynstring 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); char *Dyn2Cstring(pDynString self);
/* /*
convert to C string and delete dynstring. The result must be freed when no longer used. convert to C string and delete dynstring. The result must be freed when no longer used.