How can I compare a nsAutoString to a c string?

"[email protected]" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <[email protected]>
Hi,

How can I compare a nsAutoString to a c string?

I have
nsAutoString mystring;

...

I try to compare it with 'test'. How can I do that?

I tried :
mystring.Equals("test")
and
strcmp(mystring.get(), "test") == 1

Both I can't get it to compile.

Thank you for any tip.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.