aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-17 03:36:53 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-17 03:36:53 +0100
commiteb0678367c5cb09b43423f77d6f1c3063fae9a91 (patch)
treed178571f7db214e826c9c4ad7097d878fca391f2 /README.md
parent01b4cc91d1596cf94d709a627ed8ad64bc1e285d (diff)
downloadlibft-eb0678367c5cb09b43423f77d6f1c3063fae9a91.tar.gz
libft-eb0678367c5cb09b43423f77d6f1c3063fae9a91.tar.bz2
libft-eb0678367c5cb09b43423f77d6f1c3063fae9a91.zip
Added ft_lstlsearch and ft_lstlfind for ht manipulation
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 29959fc..5e3aeca 100644
--- a/README.md
+++ b/README.md
@@ -131,6 +131,8 @@ Much like the `.gitignore` file, you can put the files/directory to ignore when
| ft_lstadd_back | `void ft_lstadd_back(t_ftlst **alst, t_ftlst *new)` | add `new` at the start of `alst` | [x] |
| ft_lstadd_front | `void ft_lstadd_front(t_ftlst **alst, t_ftlst *new)` | add `new` at the end of `alst` | [x] |
| ft_lstbsearch | `t_ftlst *ft_lstbsearch(t_ftlst *lst, t_ftbool (*equal)(void *ref, void *content), void *ref)` | search `ref` in `lst` using binary search | [x] |
+| ft_lstlsearch | `t_ftlst *ft_lstlsearch(t_ftlst *lst, t_ftbool (*equal)(void *ref, void *content), void *ref)` | search `ref` in `lst` using linear search (push back if not found)| [x] |
+| ft_lstlfind | `t_ftlst *ft_lstlsearch(t_ftlst *lst, t_ftbool (*equal)(void *ref, void *content), void *ref)` | search `ref` in `lst` using linear search | [x] |
| ft_lstclear | `void ft_lstclear(t_ftlst **lst, void (*del)(void *))` | free all data with `del`, free all nodes and set `*lst` to NULL | [x] |
| ft_lstdelone | `void ft_lstdelone(t_ftlst *lst, void (*del)(void *))` | free `lst` node | [x] |
| ft_lstiter | `void ft_lstiter(t_ftlst *lst, void (*f)(void *))` | apply `f` on each node of `lst` | [x] |