settings.c
static void
parse_header_style(header_style_t *style, const char * const value)
{
	if (0 == strcasecmp("none", value))
		*style = NONE;
	else if (0 == strcasecmp("above", value))
		*style = ABOVE;
	else if (0 == strcasecmp("below", value))
		*style = BELOW;
	else
		errx(1, "failed to parse header-style '%s'", value);
}
/* This parses a string into a header_style_t. No allocations done here. */
This parses a string into a header_style_t. No allocations done here.
This parses a string into a header_style_t . No allocations done here .
static void
parse_header_style(header_style_t *style, const char * const value)
{
	if (0 == strcasecmp("none", value))
		*style = NONE;
	else if (0 == strcasecmp("above", value))
		*style = ABOVE;
	else if (0 == strcasecmp("below", value))
		*style = BELOW;
	else
		errx(1, "failed to parse header-style '%s'", value);
}
static void parse_header_style ( header_style_t * style , const char * const value ) { if ( 0 == strcasecmp ( " " , value ) ) * style = NONE ; else if ( 0 == strcasecmp ( " " , value ) ) * style = ABOVE ; else if ( 0 == strcasecmp ( " " , value ) ) * style = BELOW ; else errx ( 1 , " " , value ) ; }
This parses a string into a header_style_t.
This parses a string into a header_style_t .