42/d02/ex03/ft_is_negative.c

26 lines
1,018 B
C
Raw Permalink Normal View History

2016-11-20 02:20:23 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_is_negative.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/27 10:59:43 by gtertysh #+# #+# */
/* Updated: 2016/10/27 20:23:36 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
int ft_putchar(char c);
void ft_is_negative(int n)
{
if (n >= 0)
{
ft_putchar('P');
}
else
{
ft_putchar('N');
}
}