Family: setenv
Authors: Kevin S Braunsdorf
Mail: ksb@sa.fedex.com
Version: 5.1
Bugs: None known.

Introduction

This code emmulates the setenv code for systems which do not support that interface.

Configuration

None.

Provides

int setenv(char *pcName, char *pcValue);
Given a named environment variable and a value this code updates the global C variable environ to point to a new vector with the variable replaced or added (someplace).

If the new value is (char *)0 (the NULL pointer) then the variable is removed for the global environment.

To Do List

Port to new systems. Add a putenv interface.