GRASS 8 Programmer's Manual
8.6.0dev(2026)-8843f13794
Loading...
Searching...
No Matches
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
SPDX-FileCopyrightText: 2001-2011 GRASS Development Team
7
SPDX-License-Identifier: GPL-2.0-or-later
8
9
\author Original author CERL
10
*/
11
12
#include <
string.h
>
13
14
#include "manage_local_proto.h"
15
16
/*!
17
\brief Get max length of element's description
18
19
\param n element id
20
21
\return buffer length
22
*/
23
int
M__get_description_len
(
int
n)
24
{
25
int
len;
26
int
l
;
27
int
i;
28
29
len = 1;
30
for
(i = 0; i <
list
[n].
nelem
; i++) {
31
l
=
strlen
(
list
[n].desc[i]);
32
if
(
l
> len)
33
len =
l
;
34
}
35
return
len;
36
}
AMI_STREAM
Definition
ami_stream.h:153
M__get_description_len
int M__get_description_len(int n)
Get max length of element's description.
Definition
get_len.c:23
l
double l
Definition
r_raster.c:37
string.h
list
Definition
manage.h:4
list::nelem
int nelem
Definition
manage.h:9
lib
manage
get_len.c
Generated on Tue Sep 15 2026 06:57:40 for GRASS 8 Programmer's Manual by
1.9.8