[U-Boot-Users] [PATCH] Add stricmp to lib_generic/string.c

Tim Braun tim.braun at librestream.com
Wed May 3 16:34:52 CEST 2006


> From: Wolfgang Denk <wd at denx.de>
> Date: Wed, 03 May 2006 01:01:29 +0200
> 
> In message 
> <5642B638DBEF6A4DBF9E9BC68144866D0276A64E at tamail1.timeamerica.com> you
wrote:
> > Curiously enough I also ran a check to see where strnicmp is being
used
> > in all of U-Boot, since I was considering using it instead, and it
> > doesn't seem to be used at all either even though its already in
> > string.c.  I will avoid using it as well since its an obvious
candidate
> > for elimination.
> 
> Thanks for pointing out. I have to admit that I was not aware that we
> even had this function. It's gone now :-)

Hold on a second.  I've been using strnicmp (because stricmp wasn't
there) to check environment
variable values against strings.  Why would I force my users to start
being case-sensitive when 
setting up which lcd display to initialize?

What other standard library function allows case flexibility in
comparing user input?  (i.e. what 
would you suggest as an alternative to using strnicmp?)

If a particular board doesn't use it, the linker can strip it out.

Tim Braun, Sr. Des. Eng.
LibreStream Technologies
200-55 Rothwell Rd.
Winnipeg R3P 2M5  




More information about the U-Boot mailing list