1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
2023-08-06 20:12:38 +02:00

37 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lib.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kjimenez <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/24 14:26:42 by kjimenez #+# #+# */
/* Updated: 2022/07/24 16:16:26 by kjimenez ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_putstr(char *str)
{
int i;
i = -1;
while (str[++i])
write(1, &str[i], 1);
}
void ft_swap(int *i, int *j)
{
int temp;
temp = *i;
*i = *j;
*j = temp;
}