Correlating results and error checking

Individual results within a result set from a statistics C API function call can be correlated back to the original query string data.

ID or statistical results within a result set from an C API call can be correlated back to the original query string data using the struct elements queryElementPtr and queryElementLen. The status of the result is given by queryElementRC. These return codes are defined in the ctgstdat.h header file.

After a call to getFirstId or getNextId, the CTG_IdData_t elements query and queryLen represent the specific ID in the query string associated with the result.

After a call to getFirstStat or getNextStat, the CTG_StatData_t elements query and queryLen represent the specific statistic in the query string associated with the result.

If the specific ID in the query string is in error, the struct element queryElementRC will have a non-zero value, defined in the ctgstdat.h header file.