ft_swap.c 988 B

12345678910111213141516171819202122
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_swap.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2016/11/21 23:17:01 by bchanot #+# #+# */
  9. /* Updated: 2016/11/21 23:18:53 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "libft.h"
  13. void ft_swap(int *a, int *b)
  14. {
  15. int tmp;
  16. tmp = *a;
  17. *a = *b;
  18. *a = tmp;
  19. }