src/gedlib/node.c
/*==============================================================
 * tree_strlen -- Compute string length of tree -- don't count 0
 *============================================================*/
- Compute string length of tree -- don't count 0
- Compute string length of tree -- don ' t count 0
INT
tree_strlen (INT levl,       
             NODE node)      
{
	INT len = 0;
	while (node) {
		len += node_strlen(levl, node);
		if (nchild(node))
			len += tree_strlen(levl + 1, nchild(node));
		node = nsibling(node);
	}
	return len;
}
INT tree_strlen ( INT levl , NODE node ) { INT len = 0 ; while ( node ) { len += node_strlen ( levl , node ) ; if ( nchild ( node ) ) len += tree_strlen ( levl + 1 , nchild ( node ) ) ; node = nsibling ( node ) ; } return len ; }
tree_strlen -- Compute string length of tree -- don't count 0
tree_strlen -- Compute string length of tree -- don ' t count 0
/* level */ /* root */