MCPcopy Create free account
hub / github.com/OSGeo/PROJ / pr_list

Function pr_list

src/pr_list.cpp:11–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10#define LINE_LEN 72
11static int pr_list(PJ *P, int not_used) {
12 paralist *t;
13 int l, n = 1, flag = 0;
14
15 (void)putchar('#');
16 for (t = P->params; t; t = t->next)
17 if ((!not_used && t->used) || (not_used && !t->used)) {
18 l = (int)strlen(t->param) + 1;
19 if (n + l > LINE_LEN) {
20 (void)fputs("\n#", stdout);
21 n = 2;
22 }
23 (void)putchar(' ');
24 if (*(t->param) != '+')
25 (void)putchar('+');
26 (void)fputs(t->param, stdout);
27 n += l;
28 } else
29 flag = 1;
30 if (n > 1)
31 (void)putchar('\n');
32 return flag;
33}
34void /* print link list of projection parameters */
35pj_pr_list(PJ *P) {
36 char const *s;

Callers 1

pj_pr_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected