GRASS 8 Programmer's Manual 8.6.0dev(2026)-d2adb3a889
Loading...
Searching...
No Matches
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.

Functions

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

Detailed Description

GIS library - environment routines.

SPDX-FileCopyrightText: 2001-2009, 2011 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Original author CERL
Updated for GRASS7 by Glynn Clements

Definition in file putenv.c.

Function Documentation

◆ G_putenv()

void G_putenv ( const char name,
const char value 
)

Sets the UNIX environment variable name to value.

Parameters
nameenv name
valueenv value

Definition at line 29 of file putenv.c.

References G_free(), G_malloc, G_realloc, G_store(), name, and NULL.

Referenced by db_start_driver().