Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_envlen() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_ENVLEN()


Returns

Number of bytes used in the root environment, including trailing null 
bytes.


Description

Only the actual number of characters in the root environment string is 
returned. Use N_ENVSIZ() to get the size of the root environment's 
space.


Example

? 'Amount of environment space left: ', N_ENVSIZ() - N_ENVLEN()

// Add a drive to path
cNewPath := 'L:\PROJECT\DATA'
IF N_ENVLEN() + LEN(cNewPath) < N_ENVSIZ()
  current_path = N_GETENV('PATH')
  N_MODENV('PATH', current_path + cNewPath)
ELSE
  ? 'Warning: Out of environment space'
ENDIF



See Also: N_ENVSIZ() N_GETENV() N_MODENV()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson