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>
Showing
- arch/m68k/include/asm/string.h 1 addition, 1 deletionarch/m68k/include/asm/string.h
- arch/powerpc/include/asm/string.h 1 addition, 1 deletionarch/powerpc/include/asm/string.h
- arch/sparc/include/asm/string.h 1 addition, 1 deletionarch/sparc/include/asm/string.h
- include/linux/string.h 5 additions, 2 deletionsinclude/linux/string.h
- lib/string.c 12 additions, 4 deletionslib/string.c
Please register or sign in to comment