зеркало из https://github.com/mozilla/pjs.git
Added comment to strdup() noting that t he caller must use delete[]
to free the memory
This commit is contained in:
Родитель
e058147289
Коммит
4c1ca751b4
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче