Graphviz  2.41.20171026.1811
strcasecmp.c
Go to the documentation of this file.
1 /* $Id$ $Revision$ */
2 /* vim:set shiftwidth=4 ts=8: */
3 
4 /*************************************************************************
5  * Copyright (c) 2011 AT&T Intellectual Property
6  * All rights reserved. This program and the accompanying materials
7  * are made available under the terms of the Eclipse Public License v1.0
8  * which accompanies this distribution, and is available at
9  * http://www.eclipse.org/legal/epl-v10.html
10  *
11  * Contributors: See CVS logs. Details at http://www.graphviz.org/
12  *************************************************************************/
13 
14 #include "config.h"
15 
16 
17 #include <string.h>
18 #include <ctype.h>
19 
20 
21 int strcasecmp(const char *s1, const char *s2)
22 {
23  while ((*s1 != '\0')
24  && (tolower(*(unsigned char *) s1) ==
25  tolower(*(unsigned char *) s2))) {
26  s1++;
27  s2++;
28  }
29 
30  return tolower(*(unsigned char *) s1) - tolower(*(unsigned char *) s2);
31 }
32 
void s1(graph_t *, node_t *)
Definition: stuff.c:686
int strcasecmp(const char *s1, const char *s2)
Definition: strcasecmp.c:21