Next: , Previous: , Up: dtor   [Contents][Index]


4.2 dtor trait: operations

Function: ccstructs_dtor_T ccname_new(ccstructs_dtor_T) (ccstructs_core_t const * S, ccstructs_core_destructor_fun_t * destructor)

Build and return a new dtor trait instance as implemented for the struct type of S. destroy must be a pointer to the destructor function.

Function: ccstructs_core_t const * ccstructs_dtor_self (ccstructs_dtor_T I)

Return a pointer to the subject struct to which the trait belongs.

Function: void ccstructs_dtor_destroy (ccstructs_dtor_T I)

Destroy the referenced struct instance using the referenced destructor function.


Next: , Previous: , Up: dtor   [Contents][Index]

This document describes version 0.3.0-devel.3 of CCStructs.