ft_putendl.c 1.0 KB

123456789101112131415161718192021
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_putendl.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2014/11/06 17:21:20 by mazimi #+# #+# */
  9. /* Updated: 2016/02/22 18:50:37 by mazimi ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "../libft.h"
  13. void ft_putendl(char const *s)
  14. {
  15. if (s == NULL)
  16. return ;
  17. write(1, s, ft_strlen(s));
  18. ft_putchar('\n');
  19. }