GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
progrm_nme.c File Reference

GIS Library - Program name. More...

#include <string.h>
#include <grass/gis.h>
Include dependency graph for progrm_nme.c:

Go to the source code of this file.

Functions

const char * G_program_name (void)
 Return module name. More...
 
void G_set_program_name (const char *s)
 Set program name. More...
 

Detailed Description

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.

Author
Original author CERL

Definition in file progrm_nme.c.

Function Documentation

const char* G_program_name ( void  )

Return module name.

Routine returns the name of the module as set by the call to G_gisinit().

Returns
pointer to string with program name

Definition at line 27 of file progrm_nme.c.

References name.

Referenced by G__script(), G__usage_html(), G__usage_rest(), G__usage_text(), G__usage_xml(), G__wps_print_process_description(), G_done_msg(), G_get_overwrite(), G_init_logging(), and G_recreate_command().

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.

Parameters
sprogram name

Definition at line 42 of file progrm_nme.c.

References G_basename(), G_debug(), G_free(), G_is_dirsep(), G_store(), and name.

Referenced by G__gisinit().