This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

is it kosher to use strcasecmp()


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.)



thanks,

chris

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]