29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_revert_int.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: pbonilla <eirodeis.lepnj@gmail.com> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/02/28 03:57:26 by pbonilla #+# #+# */
|
|
/* Updated: 2021/03/19 18:44:09 by pbonilla ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_rev_int_tab(char *tab, int size)
|
|
{
|
|
char tmp;
|
|
int i;
|
|
|
|
i = size;
|
|
while (i > size / 2)
|
|
{
|
|
tmp = tab[i - 1];
|
|
tab[i - 1] = tab[size - i];
|
|
tab[size - i] = tmp;
|
|
i--;
|
|
}
|
|
}
|