OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [string/] [strcasecmp.c] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
2
 * This file is part of the Linux-8086 C library and is distributed
3
 * under the GNU Library General Public License.
4
 */
5
 
6
#include <string.h>
7
#include <ctype.h>
8
 
9
int
10
strcasecmp(s, d)
11
char *s;
12
char *d;
13
{
14
   for(;;)
15
   {
16
      if( *s != *d )
17
      {
18
         if( tolower(*s) != tolower(*d) )
19
            return *s - *d;
20
      }
21
      else if( *s == '\0' ) break;
22
      s++; d++;
23
   }
24
   return 0;
25
}
26
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.