removing the libft of rparodi
This commit is contained in:
parent
0391323626
commit
be6038dcc8
523 changed files with 724 additions and 3336 deletions
43
libft/include/ft_defs.h
Normal file
43
libft/include/ft_defs.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_defs.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/21 14:55:34 by bgoulard #+# #+# */
|
||||
/* Updated: 2024/05/27 09:00:04 by bgoulard ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef FT_DEFS_H
|
||||
# define FT_DEFS_H
|
||||
|
||||
# include <stdbool.h>
|
||||
# include <stddef.h>
|
||||
|
||||
/// @brief Type of function to compare two elements
|
||||
/// @param A The first element to compare
|
||||
/// @param B The second element to compare
|
||||
/// @return Standard cmp c function ( < 0, 0, > 0 for a < b, a == b, a > b)
|
||||
typedef int (*t_data_cmp)(const void *, const void *);
|
||||
|
||||
/// @brief Type of function to apply on a node data
|
||||
/// @param Data The data to apply the function on
|
||||
/// @return Void
|
||||
typedef void (*t_data_apply)(void *);
|
||||
|
||||
/// @brief Type of function to see if a node data is something
|
||||
/// @return True if the data is what we are looking for, false otherwise
|
||||
typedef bool (*t_data_is)(const void *);
|
||||
|
||||
/// @brief Type of function to transform a data into something else
|
||||
/// @return The new data
|
||||
typedef void *(*t_data_tr)(const void *);
|
||||
|
||||
/// @brief Type of function to transform inplace a data into some other data
|
||||
/// @return pointer to the data (think of strcat or memcpy, returns a pointer
|
||||
/// to dst)
|
||||
typedef void *(*t_data_tr_i)(void *);
|
||||
|
||||
#endif /* FT_DEFS_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue