GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72735
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
putenv.c File Reference

GIS library - environment routines. More...

#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <grass/config.h>
#include <grass/gis.h>
Include dependency graph for putenv.c:

Go to the source code of this file.


void G_putenv (const char *name, const char *value)
 Sets the UNIX environment variable name to value. More...


char ** environ

Detailed Description

GIS library - environment routines.

(C) 2001-2009, 2011 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.

Original author CERL
Updated for GRASS7 by Glynn Clements

Definition in file putenv.c.

Function Documentation

void G_putenv ( const char *  name,
const char *  value 

Sets the UNIX environment variable name to value.

nameenv name
valueenv value

Definition at line 31 of file putenv.c.

References environ, G_free(), G_store(), and NULL.

Referenced by db_start_driver().

Variable Documentation

char** environ

Referenced by G_putenv().