GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
get_len.c
Go to the documentation of this file.
1 
14 #include <string.h>
15 
16 #include "manage_local_proto.h"
17 
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 }
double l
struct list * list
Definition: read_list.c:24
int M__get_description_len(int n)
Get max length of element&#39;s description.
Definition: get_len.c:25