Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
33508 commits behind the upstream repository.
  • Simon Glass's avatar
    b1f17bf5
    Add strcasecmp() and strncasecmp() · b1f17bf5
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
    b1f17bf5
    History
    Add strcasecmp() and strncasecmp()
    Simon Glass authored
    
    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: default avatarSimon Glass <sjg@chromium.org>
string.c 12.59 KiB