CAPL Script

GetValueSize

Syntax

int getValueSize(EnvVarName);

int getValueSize(char name[]); // form 2

Function

Returns the size of the environment variable value in bytes.

Parameters

EnvVarName Environment variable name.Must exist in the database.

name

Environment variable name

Return Values

Size of the data in bytes.

int vSize;...// Size of the data of an environment variable of type integervSize = getValueSize(switch);// Buffersize of an environment variable of type string// (with terminating Null character)vSize = getValueSize(nodename);// Size of the data byffer of an environment variable of type datavSize = getValueSize(DiagData);...

| getValue | putValue | Direct access to values from system variables