refactor: only the usefull header

- Removing all 'libft.h' mention
- Using the include only on the files needed by
This commit is contained in:
Raphael 2025-09-01 18:45:33 +02:00
parent afb804195a
commit 905ffd4b72
No known key found for this signature in database
48 changed files with 142 additions and 120 deletions

View file

@ -6,11 +6,12 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:39:56 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:29:37 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:35:17 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <unistd.h>
/**
* @brief Add the list new to the back of chained list of lst

View file

@ -6,11 +6,12 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:40:16 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:30:01 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:35:45 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <unistd.h>
/**
* @brief Add the list new to the front of chained list of lst

View file

@ -6,11 +6,11 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:40:37 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:32:23 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:33:31 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
/**
* @brief Clear the all list with the function

View file

@ -6,11 +6,12 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:42:11 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:46:00 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:36:07 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <stdlib.h>
/**
* @brief Clear the element of the list with the function

View file

@ -6,14 +6,15 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:42:24 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:46:55 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:35:17 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <unistd.h>
/**
* @brief Apply the function given in arguments at all the element of the list
* @brief Apply the fstunction given in arguments at all the element of the list
*
* @param lst the chained list
* @param f the pointer to function

View file

@ -6,11 +6,12 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:42:54 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:48:08 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:36:47 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <unistd.h>
/**
* @brief Found the last element of the chained list

View file

@ -6,11 +6,12 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:43:28 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:51:38 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:37:46 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <unistd.h>
/**
* @brief Create an other list from an old one with a function on all element

View file

@ -6,11 +6,12 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:44:02 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:52:24 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:39:00 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <stdlib.h>
/**
* @brief Allocate a new list with the first element

View file

@ -6,11 +6,12 @@
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:44:24 by rparodi #+# #+# */
/* Updated: 2024/10/31 17:53:11 by rparodi ### ########.fr */
/* Updated: 2025/09/01 16:39:28 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "list.h"
#include <unistd.h>
/**
* @brief Give the size of the chained list