Toolkit Tutorial: Programming


  dt_Integer acount , bcount ;

 
/* The oxygen-aromatic path contains 2 atoms and 1 bond. */
 
acount = dt_count ( pathset , TYP_ATOM );
 
bcount = dt_count ( pathset , TYP_BOND );
 
printf ( "The oxygen-aromatic path contains %d atoms and %d bond.\n" ,
     
acount / pcount , bcount / pcount );