Autodocs/datatypes.doc error

Have a question about our Software Developer Kit? Ask them here.
Post Reply
User avatar
tbreeden
Posts: 160
Joined: Sat Jun 18, 2011 12:57 am
Location: Charlottesville, VA, USA
Contact:

Autodocs/datatypes.doc error

Post 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);

Post Reply