modified ft_putendl behavior when dealing with NULL
This commit is contained in:
parent
2e3500751e
commit
19d3e23b74
@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/09 13:55:29 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/09 16:46:33 by tmaze ### ########.fr */
|
||||
/* Updated: 2018/11/28 14:46:12 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/07 22:37:44 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/10 14:24:26 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/01/13 17:44:21 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -15,8 +15,6 @@
|
||||
void ft_putendl(char const *s)
|
||||
{
|
||||
if (s != NULL)
|
||||
{
|
||||
ft_putstr(s);
|
||||
ft_putchar('\n');
|
||||
}
|
||||
ft_putchar('\n');
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/04 16:55:29 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/08 14:13:22 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/01/10 17:37:08 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user