/* The molecule sequence is not invalid when adding an atom to a molecule, or when a molecule is deallocated. */ dt_dealloc ( molecule1 ); if ( dt_invalid ( container ) == 0 ) printf ( "The sequence is valid.\n" );