setenv

Gamma: Version 4.0
Prev |  | Next

# `setenv`

`setenv` -- sets an environment variable for the current process.

## Syntax

    setenv (envar, value)

## Arguments

`envar`

  The name of the environment variable to set.

`value`

  The string value for this environment variable.

## Returns

t on success, or nil on failure.

## Description

This function sets an environment variable for the current process. Both arguments are strings. The value of an environment variable can be acquired using the function `getenv`.

## Example

        Gamma> setenv("high", "40");
        t
        Gamma> getenv("high");
        "40"
        Gamma> low = 20;
        20
        Gamma> getenv("low");
        nil
        Gamma>

## See Also

`getenv`

Prev | Home | Next
`nanosleep` | Up | `shm_open`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.