sds_getcfg

int sds_getcfg (const char *symbol, char *var, int length);


Determine the value of the parameter.


This function returns data from the [AddData] section of the Icad.Cfg file, if it exists.

The symbol argument is a string with the following format:

"AppData/appname/sname/parameter"

where:

Cfg Name Meaning
AppData The [AppData] section.
appname The name of the application.
sname The section name.
parameter The parameter name.

The var argument is a pointer to a location in memory that holds the retrieved parameter data. This memory location is pre-allocated and must be big enough to hold all of the data.

The length parameter is the length of the retrieved data.

This function returns RTNORM or RTERROR when the string is truncated due to length being too small.

Tell me about...

Programming Overview of SDS™ (Solutions Development System™)