diff options
author | Michael Brown | 2007-07-14 16:42:26 +0200 |
---|---|---|
committer | Michael Brown | 2007-07-14 16:42:26 +0200 |
commit | e330db3c749c3ee638e8d652c5c3ae08c13af8e5 (patch) | |
tree | a69cefca27d7abe7863b87cb765ab55e26bd0fc5 /src/core/string.c | |
parent | Be more aggressive in attempts to enable A20, now that we have the (diff) | |
download | ipxe-e330db3c749c3ee638e8d652c5c3ae08c13af8e5.tar.gz ipxe-e330db3c749c3ee638e8d652c5c3ae08c13af8e5.tar.xz ipxe-e330db3c749c3ee638e8d652c5c3ae08c13af8e5.zip |
Dead code removal.
Kill off use of etherboot.h outside drivers/net.
Diffstat (limited to 'src/core/string.c')
-rw-r--r-- | src/core/string.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/string.c b/src/core/string.c index 87c50570..040a7785 100644 --- a/src/core/string.c +++ b/src/core/string.c @@ -189,6 +189,14 @@ int strncmp(const char * cs,const char * ct,size_t count) } #endif +#ifndef __HAVE_ARCH_STRCASECMP +int strcasecmp(const char *a, const char *b) +{ + while (*a && *b && (*a & ~0x20) == (*b & ~0x20)) {a++; b++; } + return((*a & ~0x20) - (*b & ~0x20)); +} +#endif + #ifndef __HAVE_ARCH_STRCHR /** * strchr - Find the first occurrence of a character in a string |