cString = outString.ToNewCString();
cString = ToNewCString(outString);
static nsresult PrintEditorOutput(nsIEditor* editor, PRInt32 aCommandID){	nsString		outString;	char*			cString;	nsString		formatString;    PRUint32        flags = 0;		switch (aCommandID)	{      case VIEWER_DISPLAYTEXT:        formatString.AssignWithConversion("text/plain");        flags = nsIDocumentEncoder::OutputFormatted;        editor->OutputToString(outString, formatString, flags);        break;              case VIEWER_DISPLAYHTML:        formatString.AssignWithConversion("text/html");        editor->OutputToString(outString, formatString, flags);        break;	}	cString = outString.ToNewCString();	printf(cString);	delete [] cString;		return NS_OK;}