Debian Codegraph @

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

raw symbols SCIP
1 #include <grass/imagery.h>
2 #include <grass/ortholib.h>
3
4 int I_get_cam_title(char *camera, char *title, int n)
5 {
6 FILE *fd;
7
8 *title = 0;
9 G_suppress_warnings(1);
10 fd = I_fopen_cam_file_old(camera);
11 G_suppress_warnings(0);
12 if (fd != NULL) {
13 G_getl(title, n, fd);
14 fclose(fd);
15 }
16 return fd != NULL;
17 }
18
19 int I_put_camera_title(char *camera, char *title)
20 {
21 FILE *fd;
22
23 fd = I_fopen_cam_file_new(camera);
24 if (fd != NULL) {
25 fprintf(fd, "%s\n", title);
26 fclose(fd);
27 }
28 return fd != NULL;
29 }