PROMSETENV(2spp) RISC/os Reference Manual PROMSETENV(2spp)
NAME
prom_setenv - set PROM environment variable
SYNOPSIS
#include <prom/entrypt.h>
#define RVEC 0xbfc000000
promsetenv(name, value)
char *name, *value;
DESCRIPTION
Prom_setenv may be called to define new prom environment
variables or change the value of existing environment vari-
ables. The primary use of prom_setenv is to allow programs
to change the value of PROM environment variables maintained
in non-volatile ram, see prom (1spp).
RETURNS
prom_setenv returns 0.
EXAMPLE
The following example show the typical use of prom_setenv.
Setenv assumes that name is stored in a0 and value is stored
in a1.
la a0, name1
la a1, value
jal setenv
SEE ALSO
prom_getenv(2spp)
Printed 1/6/92 Page 1