printf/libft/src/ft_swap.c
2023-10-26 18:32:55 +02:00

23 lines
985 B
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_swap.c :+: :+: */
/* +:+ */
/* By: djonker <marvin@codam.nl> +#+ */
/* +#+ */
/* Created: 2021/02/02 21:13:27 by djonker #+# #+# */
/* Updated: 2023/10/18 17:00:22 by houtworm ######## odam.nl */
/* */
/* ************************************************************************** */
#include "../libft.h"
void ft_swap(int *a, int *b)
{
int c;
c = *a;
*a = *b;
*b = c;
}