BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kremenv - remove an environment variable from the environment

LIBRARY CALL

int kremenv(
   const char *name)

INPUT

OUTPUT

none

RETURN VALUE

(0) on success, (-1) otherwise

DESCRIPTION

This module is used to remove an environment variable from the environ list. Since there does not seem to be a standard routine for this on many machines, we wrote our own.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

Does not kfree_and_NULL string associated with environment variable deleted, since we cannot know how it was created.

RESTRICTIONS

This routine will not work if the environ list is not stored as an array of strings.

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.