Debian Codegraph @

imagery/i.ortho.photo/lib/find_init.c

raw symbols SCIP
1 /**************************************************************
2 * I_find_init (group)
3 *
4 * Find the a camera initial file in the current group (if it exists)
5 **************************************************************/
6 #include <grass/gis.h>
7 #include <grass/glocale.h>
8
9 int I_find_initial(char *group)
10 {
11 char element[GNAME_MAX + 6];
12
13 if (group == NULL || *group == 0)
14 return 0;
15
16 if (snprintf(element, GNAME_MAX, "group/%s", group) >= GNAME_MAX) {
17 G_warning(_("Group name <%s> is too long"), group);
18 return 0;
19 }
20
21 return G_find_file(element, "INIT_EXP", G_mapset()) != NULL;
22 }