Beispiel #1
0
void printSummary(
      std::string const & message
    , unsigned tests
    , unsigned rep
    , bool timeout
    , std::clock_t total_time
)
{
    std::cout
        << make_padding( message, MessageAlignment )
        << "- "
        << tests
        << "-"
        << rep
        << " - "
        << ( timeout ? 99.9 : total_time/((double)CLOCKS_PER_SEC) )
        << '\n';
}
Beispiel #2
0
static void	useless_func(t_arg *arg, void **s, int size, int opt)
{
	if (opt)
	{
		if (arg->conv == 's')
			arg->nb_char += putnstr(arg, *s, size);
		else
			putnwchar(arg, *((wchar_t **)s), size);
		make_padding(arg);
	}
	else
	{
		if (arg->mod && arg->mod[0] == 'l')
			arg->conv = 'S';
		if (*((char **)s) == NULL)
		{
			arg->conv = 's';
			*s = "(null)";
		}
	}
}