/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/15 16:25:41 by ljiriste #+# #+# */
-/* Updated: 2023/12/09 15:40:38 by ljiriste ### ########.fr */
+/* Updated: 2024/03/09 00:12:24 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_io.h"
#include <unistd.h>
-void ft_putendl_fd(char *s, int fd)
+void ft_putendl_fd(const char *s, int fd)
{
ft_putstr_fd(s, fd);
write(fd, "\n", 1);
/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/15 16:23:36 by ljiriste #+# #+# */
-/* Updated: 2023/12/09 15:52:36 by ljiriste ### ########.fr */
+/* Updated: 2024/03/08 22:29:23 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <unistd.h>
-void ft_putstr_fd(char *s, int fd)
+void ft_putstr_fd(const char *s, int fd)
{
if (s == NULL)
return ;
/* By: ljiriste <ljiriste@student.42prague.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/09 11:38:28 by ljiriste #+# #+# */
-/* Updated: 2024/03/05 09:30:28 by ljiriste ### ########.fr */
+/* Updated: 2024/03/09 00:00:58 by ljiriste ### ########.fr */
/* */
/* ************************************************************************** */
# include <stdarg.h>
void ft_putchar_fd(char c, int fd);
-void ft_putstr_fd(char *s, int fd);
-void ft_putendl_fd(char *s, int fd);
+void ft_putstr_fd(const char *s, int fd);
+void ft_putendl_fd(const char *s, int fd);
void ft_putnbr_fd(int n, int fd);
int ft_printf(const char *format, ...);
int ft_dprintf(int fd, const char *format, ...);