2 * $Id: strcasecmp.c,v 1.2 2002/02/27 15:51:20 dfs Exp $
4 * Copyright (C) 1996 Lars Fenneberg and Christian Graefe
6 * This file is provided under the terms and conditions of the GNU general
7 * public license, version 2 or any later version, incorporated herein by
16 # define strcasecmp(a,b) stricmp(a,b)
20 * Function: strcasecmp
22 * Purpose: strcasecmp replacement for systems which lack strcasecmp and
26 int strcasecmp(char *s1, char *s2)
28 while (*s1 && *s2 && toupper(*s1) == toupper(*s2))
34 return (toupper(*s1) - toupper(*s2));