This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
is it kosher to use strcasecmp()
- To: binutils at sourceware dot cygnus dot com
- Subject: is it kosher to use strcasecmp()
- From: cgd at sibyte dot com (Chris G. Demetriou)
- Date: 11 Oct 2000 16:37:27 -0700
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