Added memorybook to parsing and cleaned most of the files
This commit is contained in:
20
libs/libft/srcs/ft_sign.c
Normal file
20
libs/libft/srcs/ft_sign.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_sign.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: pblagoje <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/05/04 14:14:19 by pblagoje #+# #+# */
|
||||
/* Updated: 2022/05/04 14:14:25 by pblagoje ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_sign(int i)
|
||||
{
|
||||
if (i < 0)
|
||||
return (-1);
|
||||
return (1);
|
||||
}
|
||||
Reference in New Issue
Block a user