int size = PL_strlen(inURL) + 1;
int size = nsCRT::strlen(inURL) + 1;
escape_for_mrel_subst(char *inURL){	char *output, *inC, *outC, *temp;	/* PL_strlen asserts the presence of a string in inURL */	int size = PL_strlen(inURL) + 1;	for(inC = inURL; *inC; inC++)		if ((*inC == ' ') || (*inC == '>')) 			size += 2; /* space -> '%20', '>' -> '%3E', etc. */	output = (char *)PR_MALLOC(size);	if (output)	{		/* Walk through the source string, copying all chars			except for spaces, which get escaped. */		inC = inURL;		outC = output;		while(*inC)		{			if (*inC == ' ')			{				*outC++ = '%'; *outC++ = '2'; *outC++ = '0';			}			else if (*inC == '>')			{				*outC++ = '%'; *outC++ = '3'; *outC++ = 'E';			}			else				*outC++ = *inC;			inC++;		}		*outC = '\0';			temp = escape_unescaped_percents(output);		if (temp)		{			PR_FREEIF(output);			output = temp;		}	}	return output;}