GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
Main Page
Related Pages
+
Data Structures
Data Structures
Class Hierarchy
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
z
+
Enumerations
a
c
d
e
h
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
mapcase.c
Go to the documentation of this file.
1
#include <
grass/gis.h
>
2
/*
3
* Map uppercase A-Z to lower case a-z
4
*
5
*/
6
7
8
/*!
9
* \brief convert string to lower case
10
*
11
* Upper case
12
* letters in the string <b>s</b> are converted to their lower case equivalent.
13
* Returns <b>s.</b>
14
*
15
* \param string
16
* \return char
17
*/
18
19
char
*
G_tolcase
(
char
*
string
)
20
{
21
char
*p;
22
23
for
(p =
string
; *p; p++) {
24
/* convert to lower case */
25
if
(*p >=
'A'
&& *p <=
'Z'
)
26
*p -=
'A'
-
'a'
;
27
}
28
29
return
(
string
);
30
}
31
32
33
/*
34
* Map lowercase a-z to uppercase A-Z
35
*
36
*/
37
38
39
/*!
40
* \brief convert string to upper case
41
*
42
* Lower case letters in the string <b>s</b> are converted to their upper case equivalent.
43
* Returns <b>s.</b>
44
*
45
* \param string
46
* \return char
47
*/
48
49
char
*
G_toucase
(
char
*
string
)
50
{
51
char
*p;
52
53
for
(p =
string
; *p; p++) {
54
/* convert to upper case */
55
if
(*p >=
'A'
&& *p <=
'z'
)
56
*p +=
'A'
-
'a'
;
57
}
58
59
return
(
string
);
60
}
G_tolcase
char * G_tolcase(char *string)
convert string to lower case
Definition:
mapcase.c:19
gis.h
G_toucase
char * G_toucase(char *string)
convert string to upper case
Definition:
mapcase.c:49
lib
gis
mapcase.c
Generated on Mon May 31 2021 05:21:30 for GRASS GIS 7 Programmer's Manual by
1.8.13