| 1234567891011121314151617181920212223242526 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_putstr.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2015/11/25 16:39:48 by bchanot #+# #+# */
- /* Updated: 2018/10/29 12:13:53 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- #include <unistd.h>
- 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));
- }
|