refactor: only the usefull header
- Removing all 'libft.h' mention - Using the include only on the files needed by
This commit is contained in:
parent
afb804195a
commit
905ffd4b72
48 changed files with 142 additions and 120 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue