libft
src
ft_puts.c
Go to the documentation of this file.
1
/* ************************************************************************** */
3
/* */
4
/* ::: :::::::: */
5
/* ft_puts.c :+: :+: :+: */
6
/* +:+ +:+ +:+ */
7
/* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8
/* +#+#+#+#+#+ +#+ */
9
/* Created: 2020/06/27 18:24:54 by unite #+# #+# */
10
/* Updated: 2020/07/16 02:53:32 by unite ### ########.fr */
11
/* */
12
/* ************************************************************************** */
13
14
#include <unistd.h>
15
#include "
libft.h
"
16
21
int
ft_puts
(
const
char
*s)
22
{
23
return
(write(1, s,
ft_strlen
(s)));
24
}
ft_strlen
size_t ft_strlen(const char *s)
Replicates behaviour of strlen from libc.
Definition:
ft_strlen.c:20
libft.h
ft_puts
int ft_puts(const char *s)
Replicates behaviour of puts from libc.
Definition:
ft_puts.c:21
Generated by
1.8.16