This commit is contained in:
root
2026-02-23 00:04:03 +00:00
commit fadb328b05
17 changed files with 573 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sgongas <sgongas@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/22 23:41:12 by sgongas #+# #+# */
/* Updated: 2026/02/22 23:43:40 by sgongas ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swap(int *a, int *b)
{
int tmp;
tmp = *b;
*b = *a;
*a = tmp;
}
// #include <stdio.h>
// int main(void)
// {
// int a = 10;
// int b = 20;
// ft_swap(&a, &b);
// printf("a = %d, b = %d\n", a, b);
// return (0);
// }