]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Add strcasecmp() and strncasecmp()
authorSimon Glass <sjg@chromium.org>
Wed, 5 Dec 2012 14:46:35 +0000 (14:46 +0000)
committerTom Rini <trini@ti.com>
Tue, 11 Dec 2012 20:17:34 +0000 (13:17 -0700)
commitb1f17bf5ff63a7e22e0299dd576c3b6cd38ae665
treef96ee90f06bef6e031832cded766631486a88e76
parentec7381fbf6f77cc465eb06a1ab6f8a99df1e487c
Add strcasecmp() and strncasecmp()

strncasecmp() is present as strnicmp() but disabled. Make it available
and define strcasecmp() also. There is a only a small performance penalty
to having strcasecmp() call strncasecmp(), so do this instead of a
standalone function, to save code space.

Update the prototype in arch-specific headers as needed to avoid warnings.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/m68k/include/asm/string.h
arch/powerpc/include/asm/string.h
arch/sparc/include/asm/string.h
include/linux/string.h
lib/string.c