2
* \file lib/gis/progrm_nme.c
4
* \brief GIS Library - Program name
6
* (C) 2001-2014 by the GRASS Development Team
8
* This program is free software under the GNU General Public License
9
* (>=v2). Read the file COPYING that comes with GRASS for details.
11
* \author Original author CERL
2
/**********************************************************************
7
* returns the current program name
9
**********************************************************************
11
* G_set_program_name(name)
14
* program name set to name (name will be returned by G_program_name
16
**********************************************************************/
17
14
#include <string.h>
18
15
#include <grass/gis.h>
20
17
static const char *name = "?";
24
* \brief return module name
26
* Routine returns the name
27
* of the module as set by the call to <i>G_gisinit.</i>
20
* \brief Return module name
22
* Routine returns the name of the module as set by the call to
25
* \return pointer to string with program name
33
27
const char *G_program_name(void)
38
int G_set_program_name(const char *s)
33
\brief Set program name
35
Program name set to name (name will be returned by
38
Extension like .exe or .py is stripped from program name.
42
void G_set_program_name(const char *s)