diff options
| author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2013-06-11 14:57:26 +0200 |
|---|---|---|
| committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-20 17:17:32 +0200 |
| commit | 196be5c77608bb282913f15743aa73acdfa828ba (patch) | |
| tree | efdc5123d8e8c573ee0ed27d603a622c2eee77a8 /include/linux/string.h | |
| parent | c179e7c46b573749bd59332c8b5d0a32a506fd8f (diff) | |
| download | barebox-196be5c77608bb282913f15743aa73acdfa828ba.tar.gz | |
lib: string: import case-insensitive string compare
This imports strnicmp, strcasecmp, and strncasecmp from Linux to barebox.
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'include/linux/string.h')
| -rw-r--r-- | include/linux/string.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index afd0aa6033..658264cd1e 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -53,6 +53,15 @@ extern int strcmp(const char *,const char *); #ifndef __HAVE_ARCH_STRNCMP extern int strncmp(const char *,const char *,__kernel_size_t); #endif +#ifndef __HAVE_ARCH_STRNICMP +extern int strnicmp(const char *, const char *, __kernel_size_t); +#endif +#ifndef __HAVE_ARCH_STRCASECMP +extern int strcasecmp(const char *s1, const char *s2); +#endif +#ifndef __HAVE_ARCH_STRNCASECMP +extern int strncasecmp(const char *s1, const char *s2, size_t n); +#endif #ifndef __HAVE_ARCH_STRCHR extern char * _strchr(const char *,int); #endif |
