diff options
Diffstat (limited to 'include/SString.h')
-rw-r--r-- | include/SString.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/SString.h b/include/SString.h index b404725ba..5c6723556 100644 --- a/include/SString.h +++ b/include/SString.h @@ -86,6 +86,12 @@ public: s = 0; ssize = 0; } + void clear(void) { + if (s) { + *s = '\0'; + } + ssize = 0; + } SString &operator=(const SString &source) { if (this != &source) { delete []s; |