Toolkit Tutorial: Programming


  /* Deallocation of the atom changes
    the molecules' atom count to 0. */

 
dt_mod_on ( molecule );
 
dt_dealloc ( atom );
 
dt_mod_off ( molecule );
 
acount = dt_count ( molecule , TYP_ATOM );
 
printf ( "There are %d atoms.\n" , acount );