BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kputenv - put an environment variable into the environ list.

LIBRARY CALL

int kputenv(
   const char *name)

INPUT

OUTPUT

none

RETURN VALUE

(0) on success, (-1) otherwise

DESCRIPTION

This module is used to put an environment variable in the environ list. If "PUTENV" is defined then we call putenv() otherwise we do our own putenv. The only difference is that kputenv() will malloc space for the incoming environment variable.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

the input "name" is copied into the environment list

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/env.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.