FreeBSD/contrib/mdocml/mdoc_html.c
/*
 * Calculate the scaling unit passed in a `-width' argument.  This uses
 * either a native scaling unit (e.g., 1i, 2m) or the string length of
 * the value.
 */
Calculate the scaling unit passed in a `-width' argument.  This uses
either a native scaling unit  or the string length of
the value.
Calculate the scaling unit passed in a ` - width ' argument . This uses either a native scaling unit or the string length of the value .
static void
a2width(const char *p, struct roffsu *su)
{
	if (a2roffsu(p, su, SCALE_MAX) < 2) {
		su->unit = SCALE_EN;
		su->scale = html_strlen(p);
	} else if (su->scale < 0.0)
		su->scale = 0.0;
}
static void a2width ( const char * p , struct roffsu * su ) { if ( a2roffsu ( p , su , SCALE_MAX ) < 2 ) { su -> unit = SCALE_EN ; su -> scale = html_strlen ( p ) ; } else if ( su -> scale < 0.0 ) su -> scale = 0.0 ; }
Calculate the scaling unit passed in a `-width' argument.
Calculate the scaling unit passed in a ` - width ' argument .