Page 1 of 1

Autodocs/datatypes.doc error

Posted: Wed Jan 25, 2012 3:43 am
by tbreeden
For SDK 53.20, the datatypes autodoc has an apparent error in some example code that accompanies the entry for ObtainDataTypeA
The code below shows a printout of "dt->dtn_Name", but it should be "dtn->dtn_Header->dth_Name" I think.

Tom

--------------------------------------------------------------------------------
EXAMPLE
The following code can be used to list all available datatypes:

struct DataType *dt, *prevdt = NULL;

while ((dt = ObtainDataType(DTST_RAM,NULL,
DTA_DataType, prevdt,
TAG_DONE)) != NULL)
{
ReleaseDataType(prevdt);
prevdt = dt;
Printf("%s\n", dt->dtn_Name);
}

ReleaseDataType(prevdt);