ft_putstr.c 1.0 KB

123456789101112131415161718192021222324
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* ft_putstr.c :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2015/11/25 16:39:48 by bchanot #+# #+# */
  9. /* Updated: 2016/06/15 19:07:37 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #include "libft.h"
  13. #include <unistd.h>
  14. void ft_putstr_fd(char const *s, int fd)
  15. {
  16. write(fd, s, ft_strlen(s));
  17. }
  18. void ft_putstr(const char *s)
  19. {
  20. write(1, s, ft_strlen(s));
  21. }