diff options
Diffstat (limited to 'ace/ACE.h')
-rw-r--r-- | ace/ACE.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ace/ACE.h b/ace/ACE.h index 917e1c4e8cc..1948ef3f590 100644 --- a/ace/ACE.h +++ b/ace/ACE.h @@ -367,6 +367,9 @@ public: /// segfaulting... static char *strnew (const char *s); + /// Delete the memory allocated by <strnew>. + static void strdelete (char *s); + /// Create a fresh new copy of <str>, up to <n> chars long. Uses /// <ACE_OS::malloc> to allocate the new string. static char *strndup (const char *str, size_t n); @@ -380,6 +383,8 @@ public: static wchar_t *strnew (const wchar_t *s); + static void strdelete (wchar_t *s); + static wchar_t *strndup (const wchar_t *str, size_t n); static wchar_t *strnnew (const wchar_t *str, size_t n); |