NAME

kjb_get_env - KJB library wrapper for getenv()

SYNOPSIS

#include "l/l_sys_lib.h"

Example compile flags (system dependent):
  -DLINUX_386 -DLINUX_386_P4  
   -I/home/kobus/include
   -L/home/kobus/load/linux_386_p4 -L/usr/local/lib -L/usr/lib
  -lKJB         -llapack -lblas -lg2c          -lXext -lX11 


int kjb_get_env
(
	const char *env_var,
	char *env_val_buff,
	size_t max_len
);

DESCRIPTION

This routine copies the value of the environment variable whose name is in the string env_var, into the buffer env_val_buff, of size max_len.

RETURNS

On success NO_ERROR is returned. On failure, ERROR is returned and an appropriate error message is set.

MACROS

BUFF_GET_ENV

SEEALSO

BUFF_GET_ENV

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTOR

Kobus Barnard

SEE ALSO

is_interactive , get_user_id , get_group , create_system_command_process , kjb_system , kjb_exec , kjb_waitpid , kjb_waitpid2 , check_child , check_child2 , add_cleanup_function , kjb_cleanup , kjb_cleanup_for_abort , kjb_abort , kjb_exit , kjb_exit_2 , terminate_child_process , process_is_alive , get_idle_time , get_temp_file_name , kjb_fork