obj_type function <BLOC/object.h>
The obj_type function returns the object type of an object. It returns a pointer to a ObjectType structure that the given object is an instance of.
Syntax
struct ObjectType * obj_type( void *addr );
Parameters
addr
The address of the object to find the type of. This must be a pointer to an object created by the library or the call will cause the program to terminate.
Return value
A pointer to the object's ObjectType structure. This is the same pointer that was passed to the obj_new call that created the object.