~ubuntu-branches/ubuntu/lucid/curl/lucid-201101212007

« back to all changes in this revision

Viewing changes to lib/strequal.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-05-16 15:16:54 UTC
  • mto: (3.1.1 lenny) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20070516151654-x9nkigtr2j0i8d0v
Tags: upstream-7.16.2
ImportĀ upstreamĀ versionĀ 7.16.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *                            | (__| |_| |  _ <| |___
6
6
 *                             \___|\___/|_| \_\_____|
7
7
 *
8
 
 * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
 
8
 * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
9
9
 *
10
10
 * This software is licensed as described in the file COPYING, which
11
11
 * you should have received as part of this distribution. The terms
18
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
19
 * KIND, either express or implied.
20
20
 *
21
 
 * $Id: strequal.c,v 1.27 2004/10/06 07:50:18 bagder Exp $
 
21
 * $Id: strequal.c,v 1.30 2007-04-01 07:51:30 bagder Exp $
22
22
 ***************************************************************************/
23
23
 
24
24
#include "setup.h"
26
26
#include <string.h>
27
27
#include <ctype.h>
28
28
 
 
29
#ifdef HAVE_STRINGS_H
 
30
#include <strings.h>
 
31
#endif
 
32
 
29
33
#include "strequal.h"
30
34
 
31
 
#ifdef HAVE_STRCASECMP
 
35
#if defined(HAVE_STRCASECMP) && defined(__STRICT_ANSI__)
32
36
/* this is for "-ansi -Wall -pedantic" to stop complaining! */
33
37
extern int (strcasecmp)(const char *s1, const char *s2);
34
38
extern int (strncasecmp)(const char *s1, const char *s2, size_t n);