src/gedlib/node.c
/*================================================================
 * node_strlen -- Compute NODE string length -- count \n but not 0
 *==============================================================*/
- Compute NODE string length -- count \n but not 0
- Compute NODE string length -- count \ n but not 0
static INT
node_strlen (INT levl,       
             NODE node)      
{
	INT len;
	char scratch[10];
	snprintf(scratch, sizeof(scratch), FMT_INT, levl);
	len = strlen(scratch) + 1;
	if (nxref(node)) len += strlen(nxref(node)) + 1;
	len += strlen(ntag(node));
	if (nval(node)) len += strlen(nval(node)) + 1;
	return len + 1;
}
static INT node_strlen ( INT levl , NODE node ) { INT len ; char scratch [ 10 ] ; snprintf ( scratch , sizeof ( scratch ) , FMT_INT , levl ) ; len = strlen ( scratch ) + 1 ; if ( nxref ( node ) ) len += strlen ( nxref ( node ) ) + 1 ; len += strlen ( ntag ( node ) ) ; if ( nval ( node ) ) len += strlen ( nval ( node ) ) + 1 ; return len + 1 ; }
node_strlen -- Compute NODE string length -- count \n but not 0
node_strlen -- Compute NODE string length -- count \ n but not 0
/* level */ /* node */