head/usr.bin/rctl/rctl.c
/*
 * Print rules, one per line.
 */
Print rules, one per line.
Print rules one per line .
static void
print_rules(char *rules, int hflag, int nflag)
{
	char *rule;
	while ((rule = strsep(&rules, ",")) != NULL) {
		if (rule[0] == '\0')
			break; 
		if (nflag == 0)
			rule = humanize_ids(rule);
		if (hflag)
			rule = humanize_amount(rule);
		printf("%s\n", rule);
	}
}
static void print_rules ( char * rules , int hflag , int nflag ) { char * rule ; while ( ( rule = strsep ( & rules , " " ) ) != NULL ) { if ( rule [ 0 ] == ' \0 ' ) break ; if ( nflag == 0 ) rule = humanize_ids ( rule ) ; if ( hflag ) rule = humanize_amount ( rule ) ; printf ( " \n " , rule ) ; } }
Print rules, one per line.
Print rules one per line .
/* XXX */