Beispiel #1
0
void	ft_exit(t_env *e)
{
	ft_freelist(e);
	free(get_instance());
	ft_restore(e);
	exit(1);
}
Beispiel #2
0
int					ft_putchar_term(int c)
{
	int		fd_term;

	fd_term = 1;
	if (fd_term)
	{
		write(fd_term, &c, (unsigned long)1);
		return (c);
	}
	else
	{
		ft_restore();
		_exit(0);
	}
	return (c);
}