GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
sigfile.c File Reference

Imagery Library - Signature file functions (statistics for i.maxlik). More...

#include <string.h>
#include <grass/imagery.h>
Include dependency graph for sigfile.c:

Go to the source code of this file.

Functions

FILE * I_fopen_signature_file_new (const char *group, const char *subgroup, const char *name)
 Create signature file. More...
 
FILE * I_fopen_signature_file_old (const char *group, const char *subgroup, const char *name)
 Open existing signature file. More...
 

Detailed Description

Imagery Library - Signature file functions (statistics for i.maxlik).

(C) 2001-2008, 2013 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
USA CERL

Definition in file sigfile.c.

Function Documentation

◆ I_fopen_signature_file_new()

FILE* I_fopen_signature_file_new ( const char *  group,
const char *  subgroup,
const char *  name 
)

Create signature file.

Parameters
groupgroup name
subgroupsubgroup name in given group
namesignature filename
Returns
pointer to FILE*
NULL on error

Definition at line 27 of file sigfile.c.

References G__make_mapset_element_misc(), G_fopen_new_misc(), G_name_is_fully_qualified(), GMAPSET_MAX, GNAME_MAX, and GPATH_MAX.

◆ I_fopen_signature_file_old()

FILE* I_fopen_signature_file_old ( const char *  group,
const char *  subgroup,
const char *  name 
)

Open existing signature file.

Parameters
groupgroup name (may be fully qualified)
subgroupsubgroup name in given group
namesignature filename
Returns
pointer to FILE*
NULL on error

Definition at line 59 of file sigfile.c.

References G_fopen_old_misc(), G_unqualified_name(), GMAPSET_MAX, GNAME_MAX, GPATH_MAX, and NULL.