Add all git folders
This commit is contained in:
24
C_Piscine_C_00/git/ex04/ft_is_negative.c
Normal file
24
C_Piscine_C_00/git/ex04/ft_is_negative.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_is_negative.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/08/05 13:18:29 by gbaconni #+# #+# */
|
||||
/* Updated: 2021/08/05 13:45:21 by gbaconni ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
void ft_is_negative(int n)
|
||||
{
|
||||
char c;
|
||||
|
||||
if (n < 0)
|
||||
c = 'N';
|
||||
else
|
||||
c = 'P';
|
||||
write(1, &c, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user