Files
42_INT_01_libft/srcs/ft_putstr_fd.c
asus 603303a21b - re-added ft_putchar/putnbr/putstr without fd
- added const for pointers in these functions
2024-01-11 10:36:13 +01:00

24 lines
1.0 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/25 14:00:04 by hulamy #+# #+# */
/* Updated: 2019/11/25 14:00:05 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
/*
** write the string s on the given file descritor fd
*/
#include "libft.h"
void ft_putstr_fd(const char *s, int fd)
{
while (s && *s)
ft_putchar_fd(*s++, fd);
}