Exemplo n.º 1
0
void	ft_error(const char *s)
{
	FP2("ft_select error: ", 2);
	FP2(s, 2);
	FP2("\n", 2);
	exit(3);
}
Exemplo n.º 2
0
void	ft_print_core(int i)
{
	if (i == 11)
	{
		FP2("\033[31mReceived core dump signal: ", 2);
		FP2("Segmentation Fault", 2);
		FP2("\033[0m\n", 2);
	}
	else
	{
		FP2("\033[31mReceived core dump signal: ", 2);
		FP2(ft_itoa(i), 2);
		FP2("\033[0m\n", 2);
	}
	exit(-1);
}
Exemplo n.º 3
0
void evh(struct inotify_event *ev) {
	FP2("msk: 0x%x, nm=\"%s\"", ev->mask, ev->name);
}
Exemplo n.º 4
0
void	ft_error(char *s)
{
	FP2("42sh: ", 2);
	FP2(s, 2);
	FP2(".\n", 2);
}