Esempio n. 1
0
static void	list_opts_2(t_opt *opt, char *s, int i)
{
	if (s[i] == 'i')
		opt->i = 1;
	else if (s[i] == 'n')
		opt->n = 1;
	else if (s[i] == 'R')
		opt->big_r = 1;
	else if (s[i] == 'S')
		opt->big_s = 1;
	else
		error_opt(s[i]);
}
Esempio n. 2
0
int			main(void)
{
	error_opt(ERR_DISP_AUTO);

	basic_test_malloc_small();
	MRESET;
	basic_test_malloc_medium();
	MRESET;
	basic_test_malloc_large();
	MRESET;
	basic_test_realloc_smaller();
	MRESET;
	basic_test_realloc_same();
	MRESET;
	basic_test_realloc_larger();
	MRESET;
	basic_test_realloc_overflow();
	MRESET;
	basic_test_free_small();
	MRESET;
	basic_test_free_medium();
	MRESET;
	basic_test_free_large();
	MRESET;
	advanced_test_malloc();
	MRESET;
	advanced_test_realloc();
	MRESET;
	advanced_test_free();
	MRESET;
	stress_test_malloc_small();
	MRESET;
	stress_test_malloc_medium();
	MRESET;
	stress_test_malloc_large();
	MRESET;
	stress_test_realloc_smaller();
	MRESET;
	stress_test_realloc_same();
	MRESET;
	stress_test_realloc_larger();
	MRESET;
	stress_test_free_small();
	MRESET;
	stress_test_free_medium();
	MRESET;
	stress_test_free_large();
	MRESET;
	return (0);
}