/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putstr.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/25 16:39:48 by bchanot #+# #+# */ /* Updated: 2018/10/29 12:13:53 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" #include void ft_putstr_fd(const char *const s, int fd) { if (s && fd >= 0) write(fd, s, ft_strlen(s)); } void ft_putstr(const char *const s) { if (s) write(1, s, ft_strlen(s)); }