mksh/mksh.logging/exec.c
static void
select_fmt_entry(char *buf, size_t buflen, unsigned int i, const void *arg)
{
	const struct select_menu_info *smi =
	    (const struct select_menu_info *)arg;

	shf_snprintf(buf, buflen, "%*u) %s",
	    smi->num_width, i + 1, smi->args[i]);
}
/* format a single select menu item */
format a single select menu item
format a single select menu item
static void
select_fmt_entry(char *buf, size_t buflen, unsigned int i, const void *arg)
{
	const struct select_menu_info *smi =
	    (const struct select_menu_info *)arg;
	shf_snprintf(buf, buflen, "%*u) %s",
	    smi->num_width, i + 1, smi->args[i]);
}
static void select_fmt_entry ( char * buf , size_t buflen , unsigned int i , const void * arg ) { const struct select_menu_info * smi = ( const struct select_menu_info * ) arg ; shf_snprintf ( buf , buflen , " " , smi -> num_width , i + 1 , smi -> args [ i ] ) ; }
format a single select menu item
format a single select menu item