cp = aString.ToNewCString();
cp = ToNewCString(aString);
NS_COM int fputs(const nsCString& aString, FILE* out){  char buf[100];  char* cp = buf;  PRInt32 len = aString.mLength;  if (len >= PRInt32(sizeof(buf))) {    cp = aString.ToNewCString();  } else {    aString.ToCString(cp, len + 1);  }  if(len>0)    ::fwrite(cp, 1, len, out);  if (cp != buf) {    delete[] cp;  }  return (int) len;}