Synesis Software

setenv.h
[Synesis Software UNIX Emulation for Win32]


Detailed Description

setenv() and unsetenv() functions


Functions

int setenv (char const *name, char const *value, int bOverwrite)
 Inserts or resets the value of an environment variable.
void unsetenv (char const *name)
 Deletes the named environment variable, if it exists.


Function Documentation

int setenv ( char const *  name,
char const *  value,
int  bOverwrite 
)

Inserts or resets the value of an environment variable.

This function creates a link from originalFile to linkName.

Parameters:
name The name of the environment variable to add / set
value The value of the environment variable
bOverwrite Determines whether to overwrite the variable, if it exists, or to leave its current value intact
Returns:
O on success, or -1 if there is an error

void unsetenv ( char const *  name  ) 

Deletes the named environment variable, if it exists.

Parameters:
name The name of the environment to delete
Returns:
O on success, or -1 if there is an error


UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2002-2007