From 4a4285c858a124d0f82384c7da11178c541d1dfd Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Sat, 15 Mar 2003 02:31:17 +0000 Subject: [PATCH] didn't want to check this in per darin --- xpcom/ds/nsCRT.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xpcom/ds/nsCRT.h b/xpcom/ds/nsCRT.h index be299d8bedc..71450daedc7 100644 --- a/xpcom/ds/nsCRT.h +++ b/xpcom/ds/nsCRT.h @@ -127,6 +127,14 @@ public: *** ***/ + /** Compute the string length of s + @param s the string in question + @return the length of s + */ + static PRUint32 strlen(const char* s) { + return PRUint32(::strlen(s)); + } + /// Compare s1 and s2. static PRInt32 strcmp(const char* s1, const char* s2) { return PRInt32(PL_strcmp(s1, s2));