Copyright © 1997, DAYLIGHT Chemical Information Systems, Inc. Irvine CA USA
dt_setadjunct(ob, myadj);
...
...
value = dt_adjunct(ob);
What is important to recognize about the adjunct is that its " scope" is the same as the object. That is, anywhere that one can access the object, one can access the adjunct.
This is a useful mechanism for associating data with objects.
The correct approach is to make an object (string, sequence, etc.) and package up any data in that object. However, there is a fair amount of overhead and grief associated with packaging/unpackaging data.
This has promoted numerous "toolkit abuses":
int val[20];
dt_setadjunct(ob, (dt_Handle)val);