diff options
Diffstat (limited to 'linden/indra/libgcrypt/libgcrypt-1.2.2/src/missing-string.c')
-rw-r--r--[-rwxr-xr-x] | linden/indra/libgcrypt/libgcrypt-1.2.2/src/missing-string.c | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/linden/indra/libgcrypt/libgcrypt-1.2.2/src/missing-string.c b/linden/indra/libgcrypt/libgcrypt-1.2.2/src/missing-string.c index 059e327..ad25cba 100755..100644 --- a/linden/indra/libgcrypt/libgcrypt-1.2.2/src/missing-string.c +++ b/linden/indra/libgcrypt/libgcrypt-1.2.2/src/missing-string.c | |||
@@ -1,53 +1,53 @@ | |||
1 | /* missing-string.c - missing string utilities | 1 | /* missing-string.c - missing string utilities |
2 | * Copyright (C) 1994, 1998, 1999, 2000, 2001, | 2 | * Copyright (C) 1994, 1998, 1999, 2000, 2001, |
3 | * 2003 Free Software Foundation, Inc. | 3 | * 2003 Free Software Foundation, Inc. |
4 | * | 4 | * |
5 | * This file is part of Libgcrypt. | 5 | * This file is part of Libgcrypt. |
6 | * | 6 | * |
7 | * Libgcrypt is free software; you can redistribute it and/or modify | 7 | * Libgcrypt is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU Lesser General Public License as | 8 | * it under the terms of the GNU Lesser General Public License as |
9 | * published by the Free Software Foundation; either version 2.1 of | 9 | * published by the Free Software Foundation; either version 2.1 of |
10 | * the License, or (at your option) any later version. | 10 | * the License, or (at your option) any later version. |
11 | * | 11 | * |
12 | * Libgcrypt is distributed in the hope that it will be useful, | 12 | * Libgcrypt is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | * GNU Lesser General Public License for more details. | 15 | * GNU Lesser General Public License for more details. |
16 | * | 16 | * |
17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
18 | * License along with this program; if not, write to the Free Software | 18 | * License along with this program; if not, write to the Free Software |
19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <config.h> | 22 | #include <config.h> |
23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
24 | #include <string.h> | 24 | #include <string.h> |
25 | #include <ctype.h> | 25 | #include <ctype.h> |
26 | 26 | ||
27 | #include "g10lib.h" | 27 | #include "g10lib.h" |
28 | 28 | ||
29 | 29 | ||
30 | #ifndef HAVE_STPCPY | 30 | #ifndef HAVE_STPCPY |
31 | char * | 31 | char * |
32 | _gcry_stpcpy(char *a,const char *b) | 32 | _gcry_stpcpy(char *a,const char *b) |
33 | { | 33 | { |
34 | while( *b ) | 34 | while( *b ) |
35 | *a++ = *b++; | 35 | *a++ = *b++; |
36 | *a = 0; | 36 | *a = 0; |
37 | 37 | ||
38 | return (char*)a; | 38 | return (char*)a; |
39 | } | 39 | } |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | 42 | ||
43 | #ifndef HAVE_STRCASECMP | 43 | #ifndef HAVE_STRCASECMP |
44 | int | 44 | int |
45 | _gcry_strcasecmp( const char *a, const char *b ) | 45 | _gcry_strcasecmp( const char *a, const char *b ) |
46 | { | 46 | { |
47 | for( ; *a && *b; a++, b++ ) { | 47 | for( ; *a && *b; a++, b++ ) { |
48 | if( *a != *b && toupper(*a) != toupper(*b) ) | 48 | if( *a != *b && toupper(*a) != toupper(*b) ) |
49 | break; | 49 | break; |
50 | } | 50 | } |
51 | return *(const byte*)a - *(const byte*)b; | 51 | return *(const byte*)a - *(const byte*)b; |
52 | } | 52 | } |
53 | #endif | 53 | #endif |