-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_swapchar.c
22 lines (20 loc) · 1004 Bytes
/
ft_swapchar.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swapchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achambon <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/01/06 14:14:53 by achambon #+# #+# */
/* Updated: 2017/01/06 14:20:22 by achambon ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swapchar(char *a, char *b)
{
char *tmp;
if (!a || !b)
return ;
*tmp = *b;
*b = *a;
*a = *tmp;
}