GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
case.c
Go to the documentation of this file.
1 #include <grass/dbmi.h>
2 
10 {
11  if (*s >= 'A' && *s <= 'Z')
12  *s -= 'A' - 'a';
13 }
14 
22 {
23  if (*s >= 'a' && *s <= 'z')
24  *s += 'A' - 'a';
25 }
26 
34 {
35  while (*s)
37 }
38 
46 {
47  while (*s)
49 }
50 
57 int db_nocase_compare(const char *a, const char *b)
58 {
59  char s, t;
60 
61  while (*a && *b) {
62  s = *a++;
63  t = *b++;
66  if (s != t)
67  return 0;
68  }
69  return (*a == 0 && *b == 0);
70 }