Added comment to strdup() noting that t he caller must use delete[]

to free the memory


git-svn-id: svn://10.0.0.236/trunk@16814 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-12-22 19:01:14 +00:00
parent 63312a2e66
commit cf13a281b8
2 changed files with 4 additions and 0 deletions

View File

@@ -102,6 +102,8 @@ public:
static PRInt32 strncasecmp(const PRUnichar* s1, const char* s2,
PRInt32 aMaxLen);
// Note: uses new[] to allocate memory, so you must use delete[] to
// free the memory
static PRUnichar* strdup(const PRUnichar* str);
/// Compute a hashcode for a ucs2 string