Archived
1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
pipex/libft/print/printf/ft_putstr.c

24 lines
1.0 KiB
C
Raw Normal View History

2024-04-11 14:02:42 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/31 11:45:55 by adjoly #+# #+# */
/* Updated: 2024/03/29 12:14:26 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "../../libft.h"
int ft_putstr_p(char *s)
{
if (s == NULL)
{
write(1, "(null)", 6);
return (6);
}
return (write(1, s, ft_strlen(s)));
}