is it kosher to use strcasecmp()
Michael Meissner
meissner@cygnus.com
Wed Oct 11 18:13:00 GMT 2000
More information about the Binutils mailing list
Wed Oct 11 18:13:00 GMT 2000
- Previous message (by thread): is it kosher to use strcasecmp()
- Next message (by thread): is it kosher to use strcasecmp()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Oct 11, 2000 at 04:37:27PM -0700, Chris G. Demetriou wrote:
> Is it kosher to use strcasecmp() to compare command line arguments
> with a table of strings?
>
> I ask because i'm gutting the MIPS cpu/ISA command line selection crud
> -- and wow is it crud -- in gas, and being able to use strcasecmp()
> would cut down my table by more than half.
>
> (It's in libiberty and OK for at least internal use -- just wanted to
> be sure it was OK for case-insensitive command line handling.)
Yes, you can use it in bfd/binutils/gas/ld. Gas/{expr,read}.c already use it.
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482
- Previous message (by thread): is it kosher to use strcasecmp()
- Next message (by thread): is it kosher to use strcasecmp()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list