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
get_len.c
Go to the documentation of this file.
1
/*!
2
\file lib/manage/get_len.c
3
4
\brief Manage Library - Get max length of element's description
5
6
(C) 2001-2011 by the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Original author CERL
12
*/
13
14
#include <string.h>
15
16
#include "manage_local_proto.h"
17
18
/*!
19
\brief Get max length of element's description
20
21
\param n element id
22
23
\return buffer length
24
*/
25
int
M__get_description_len
(
int
n)
26
{
27
int
len;
28
int
l
;
29
int
i;
30
31
len = 1;
32
for
(i = 0; i <
list
[n].
nelem
; i++) {
33
l = strlen(
list
[n].desc[i]);
34
if
(l > len)
35
len =
l
;
36
}
37
return
len;
38
}
l
double l
Definition:
r_raster.c:39
M__get_description_len
int M__get_description_len(int n)
Get max length of element's description.
Definition:
get_len.c:25
list
Definition:
manage.h:4
list::nelem
int nelem
Definition:
manage.h:10
lib
manage
get_len.c
Generated on Mon May 31 2021 05:21:29 for GRASS GIS 7 Programmer's Manual by
1.8.13