GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
GIS Library - Program name. More...
Go to the source code of this file.
Functions | |
const char * | G_program_name (void) |
Return module name. More... | |
const char * | G_original_program_name (void) |
Return original path of the executed program. More... | |
void | G_set_program_name (const char *s) |
Set program name. More... | |
GIS Library - Program name.
(C) 2001-2014 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.
Definition in file progrm_nme.c.
const char* G_original_program_name | ( | void | ) |
Return original path of the executed program.
This function returns the name of the program as set by the call to G_gisinit().
Unlike G_program_name() which returns name of the module this function return original path which was used to execute the program. For standard GRASS modules, it will be the same as the result from G_program_name() function.
Definition at line 46 of file progrm_nme.c.
const char* G_program_name | ( | void | ) |
Return module name.
Routine returns the name of the module as set by the call to G_gisinit().
Definition at line 28 of file progrm_nme.c.
References name.
void G_set_program_name | ( | const char * | s | ) |
Set program name.
Program name set to name (name will be returned by G_program_name*())
Extension like .exe or .py is stripped from program name.
s | program name |
Definition at line 61 of file progrm_nme.c.