ft_putstr_fd.c 1006 B

12345678910111213141516171819
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_putstr_fd.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/06 18:15:07 by mazimi #+# #+# */
  9. /* Updated: 2016/02/22 18:51:45 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. void ft_putstr_fd(char const *s, int fd)
  14. {
  15. if (s != NULL)
  16. write(fd, s, ft_strlen(s));
  17. }