-
Notifications
You must be signed in to change notification settings - Fork 0
/
libft_2.c
33 lines (28 loc) · 1.08 KB
/
libft_2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft_2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rbourgea <rbourgea@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/04/12 19:51:07 by rbourgea #+# #+# */
/* Updated: 2021/04/12 19:51:18 by rbourgea ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_putchar_fd(char c, int fd)
{
write(fd, &c, 1);
}
int ft_strlen(char *s)
{
int i;
i = 0;
while (s[i])
i++;
return (i);
}