PR_sscanf(intString, "%hd", &outOrdinal); delete [] intString;
PR_sscanf((const char *)intString, "%hd", &outOrdinal);
static PRBool CheckOrdinalAndStrip(nsString& ioString, PRInt16& outOrdinal)//----------------------------------------------------------------------------------------{    PRInt32 colonPos = ioString.FindChar(':');    if (colonPos <= 0)        return PR_FALSE;    char* intString = ioString.ToNewCString();    intString[colonPos] = 0;    if (!isdigit(*intString))    {        outOrdinal = 0;        return PR_TRUE;    }    ioString.Cut(0, colonPos + 1);    PR_sscanf(intString, "%hd", &outOrdinal);    delete [] intString;    return PR_TRUE;}