Upload files to "/"

This commit is contained in:
2026-03-04 17:05:09 +01:00
parent d6825325dd
commit 3916915cde
5 changed files with 100 additions and 0 deletions

28
ft_is_negative.c Normal file
View File

@@ -0,0 +1,28 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_is_negative.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/04 10:08:57 by lclerel- #+# #+# */
/* Updated: 2026/03/04 16:11:32 by lclerel- ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_is_negative(int n)
{
char c;
if (n >= 0)
{
c = 'P';
}
else
{
c = 'N';
}
write(1, &c, 1);
}