2023-02-14 01:08:25 -05:00
|
|
|
#include "extra.h"
|
2023-02-09 12:47:05 -05:00
|
|
|
|
|
|
|
void ft_swap(void *a, void *b)
|
|
|
|
{
|
|
|
|
void *c;
|
|
|
|
|
|
|
|
c = a;
|
|
|
|
a = b;
|
|
|
|
b = c;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ft_swap_char(char *a, char *b)
|
|
|
|
{
|
|
|
|
char c;
|
|
|
|
|
|
|
|
c = *a;
|
|
|
|
*a = *b;
|
|
|
|
*b = c;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ft_swap_int(int *a, int *b)
|
|
|
|
{
|
|
|
|
int c;
|
|
|
|
|
|
|
|
c = *a;
|
|
|
|
*a = *b;
|
|
|
|
*b = c;
|
|
|
|
}
|