Added memorybook to parsing and cleaned most of the files

This commit is contained in:
Philippe BLAGOJEVIC
2022-05-04 14:38:34 +02:00
parent e564e7c8e9
commit 362668fe35
231 changed files with 11474 additions and 405 deletions

View File

@@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_arrint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: simplonco <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/21 19:30:25 by simplonco #+# #+# */
/* Updated: 2022/05/04 14:04:53 by pblagoje ### ########.fr */
/* */
/* ************************************************************************** */
/*
* search through an arr of int if it contains the int comp
* return 0 if found, 1 otherwise
*/
#include "libft.h"
int ft_arrint(int *intarr, int comp, size_t size)
{
size_t i;
if (!intarr)
return (1);
i = -1;
while (++i < size)
if (intarr[i] == comp)
return (0);
return (1);
}