#include <unistd.h>
void	ft_swap(int *a, int *b)
{
	int	i;
	i = *a;
	*a = *b;
	*b = i;
}
void	ft_rev_int_tab(int *tab, int size)
{
	int	*pointerf;
	int	*pointerl;
	pointerf = tab;
	pointerl = tab + size -1;
	while (pointerf < pointerl)
	{
		ft_swap(pointerf, pointerl);
		pointerf++;
		pointerl--;
	}
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: