Daylight v4.9
Release Date: 1 February 2008


dt_hcount - retrieve the hydrogen count for an atom

Generic Prototype

dt_hcount(dt_Handle) => dt_Integer

C Prototype

#include "dt_smiles.h"

dt_Integer dt_hcount(dt_Handle atom)

FORTRAN Prototype

include ''

integer*4 dt_f_hcount(atom)

integer*4 atom


Finds the hydrogen count for the given atom. This includes both implicit and explicit hydrogens.

Return Value

Returns the total number of hydrogens. For all other objects, this property is defined as -1.

Related Topics

dt_addatom(3) dt_imp_hcount(3) dt_isohydro(3) dt_setimp_hcount(3)