aboutsummaryrefslogtreecommitdiff
path: root/libft
diff options
context:
space:
mode:
Diffstat (limited to 'libft')
m---------libft0
-rw-r--r--libft/.gitignore13
-rw-r--r--libft/Makefile98
-rw-r--r--libft/include/libft.h34
-rw-r--r--libft/include/libft_algo.h81
-rw-r--r--libft/include/libft_bt.h28
-rw-r--r--libft/include/libft_ctype.h36
-rw-r--r--libft/include/libft_def.h56
-rw-r--r--libft/include/libft_dlst.h30
-rw-r--r--libft/include/libft_dstr.h45
-rw-r--r--libft/include/libft_ht.h72
-rw-r--r--libft/include/libft_io.h46
-rw-r--r--libft/include/libft_lst.h68
-rw-r--r--libft/include/libft_mem.h39
-rw-r--r--libft/include/libft_printf.h27
-rw-r--r--libft/include/libft_str.h108
-rw-r--r--libft/include/libft_util.h20
-rw-r--r--libft/include/libft_vec.h60
-rw-r--r--libft/src/algo/ft_bsearch.c32
-rw-r--r--libft/src/algo/ft_compar_int.c25
-rw-r--r--libft/src/algo/ft_compar_str.c25
-rw-r--r--libft/src/algo/ft_is_set.c39
-rw-r--r--libft/src/algo/ft_lfind.c28
-rw-r--r--libft/src/algo/ft_lsearch.c23
-rw-r--r--libft/src/algo/ft_mergesort.c98
-rw-r--r--libft/src/algo/ft_qsort.c97
-rw-r--r--libft/src/algo/ft_reverse.c34
-rw-r--r--libft/src/bt/ft_btdestroy.c23
-rw-r--r--libft/src/bt/ft_btnew.c25
-rw-r--r--libft/src/ctype/ft_isalnum.c18
-rw-r--r--libft/src/ctype/ft_isalpha.c16
-rw-r--r--libft/src/ctype/ft_isascii.c16
-rw-r--r--libft/src/ctype/ft_isblank.c16
-rw-r--r--libft/src/ctype/ft_isdigit.c16
-rw-r--r--libft/src/ctype/ft_isprint.c16
-rw-r--r--libft/src/ctype/ft_isspace.c19
-rw-r--r--libft/src/ctype/ft_todigit.c20
-rw-r--r--libft/src/ctype/ft_tolower.c24
-rw-r--r--libft/src/ctype/ft_toupper.c20
-rw-r--r--libft/src/dlst/ft_dlstdelone.c26
-rw-r--r--libft/src/dlst/ft_dlstdestroy.c32
-rw-r--r--libft/src/dlst/ft_dlstnew.c25
-rw-r--r--libft/src/dstr/ft_dstrdestroy.c26
-rw-r--r--libft/src/dstr/ft_dstrerase.c34
-rw-r--r--libft/src/dstr/ft_dstrgrow.c41
-rw-r--r--libft/src/dstr/ft_dstrinsert.c38
-rw-r--r--libft/src/dstr/ft_dstrnew.c32
-rw-r--r--libft/src/dstr/ft_dstrsubstitute.c32
-rw-r--r--libft/src/dstr/ft_dstrunwrap.c28
-rw-r--r--libft/src/dstr/ft_dstrwrap.c25
-rw-r--r--libft/src/ht/ft_htdelone.c30
-rw-r--r--libft/src/ht/ft_htdestroy.c32
-rw-r--r--libft/src/ht/ft_htentry_new.c37
-rw-r--r--libft/src/ht/ft_htget.c35
-rw-r--r--libft/src/ht/ft_hthash.c35
-rw-r--r--libft/src/ht/ft_htiter.c31
-rw-r--r--libft/src/ht/ft_htnew.c37
-rw-r--r--libft/src/ht/ft_htset.c59
-rw-r--r--libft/src/ht/ft_htset_safe.c25
-rw-r--r--libft/src/ht/ft_inter_htdel_first_order.c33
-rw-r--r--libft/src/ht/ft_inter_htkey_cmp.c25
-rw-r--r--libft/src/io/ft_getchar.c22
-rw-r--r--libft/src/io/ft_getline.c113
-rw-r--r--libft/src/io/ft_putchar.c18
-rw-r--r--libft/src/io/ft_putchar_fd.c20
-rw-r--r--libft/src/io/ft_putendl.c18
-rw-r--r--libft/src/io/ft_putendl_fd.c21
-rw-r--r--libft/src/io/ft_putnbr.c18
-rw-r--r--libft/src/io/ft_putnbr_fd.c30
-rw-r--r--libft/src/io/ft_putstr.c18
-rw-r--r--libft/src/io/ft_putstr_fd.c20
-rw-r--r--libft/src/lst/ft_lstbsearch.c65
-rw-r--r--libft/src/lst/ft_lstdelone.c27
-rw-r--r--libft/src/lst/ft_lstdestroy.c31
-rw-r--r--libft/src/lst/ft_lstiter.c29
-rw-r--r--libft/src/lst/ft_lstlast.c27
-rw-r--r--libft/src/lst/ft_lstlfind.c22
-rw-r--r--libft/src/lst/ft_lstlsearch.c27
-rw-r--r--libft/src/lst/ft_lstmap.c56
-rw-r--r--libft/src/lst/ft_lstnew.c29
-rw-r--r--libft/src/lst/ft_lstpop_back.c31
-rw-r--r--libft/src/lst/ft_lstpop_front.c29
-rw-r--r--libft/src/lst/ft_lstpush_back.c30
-rw-r--r--libft/src/lst/ft_lstpush_front.c26
-rw-r--r--libft/src/lst/ft_lstpush_front_node.c23
-rw-r--r--libft/src/lst/ft_lstremove_if.c38
-rw-r--r--libft/src/lst/ft_lstreverse.c22
-rw-r--r--libft/src/lst/ft_lstreverse_ret.c32
-rw-r--r--libft/src/lst/ft_lstsize.c31
-rw-r--r--libft/src/lst/ft_lstsort.c46
-rw-r--r--libft/src/lst/ft_lstsorted_merge.c43
-rw-r--r--libft/src/mem/ft_bzero.c18
-rw-r--r--libft/src/mem/ft_calloc.c23
-rw-r--r--libft/src/mem/ft_memalloc.c18
-rw-r--r--libft/src/mem/ft_memccpy.c31
-rw-r--r--libft/src/mem/ft_memchr.c26
-rw-r--r--libft/src/mem/ft_memcmp.c30
-rw-r--r--libft/src/mem/ft_memcpy.c33
-rw-r--r--libft/src/mem/ft_memdel.c21
-rw-r--r--libft/src/mem/ft_memmem.c58
-rw-r--r--libft/src/mem/ft_memmove.c35
-rw-r--r--libft/src/mem/ft_memset.c31
-rw-r--r--libft/src/mem/ft_memset_pattern4.c26
-rw-r--r--libft/src/mem/ft_memswap.c29
-rw-r--r--libft/src/str/ft_atoi.c25
-rw-r--r--libft/src/str/ft_atoi_strict.c38
-rw-r--r--libft/src/str/ft_fnmatch.c37
-rw-r--r--libft/src/str/ft_itoa.c40
-rw-r--r--libft/src/str/ft_itoa_cpy.c44
-rw-r--r--libft/src/str/ft_split.c63
-rw-r--r--libft/src/str/ft_splitf.c22
-rw-r--r--libft/src/str/ft_strcasecmp.c24
-rw-r--r--libft/src/str/ft_strcat.c19
-rw-r--r--libft/src/str/ft_strcat3.c26
-rw-r--r--libft/src/str/ft_strchr.c18
-rw-r--r--libft/src/str/ft_strclr.c20
-rw-r--r--libft/src/str/ft_strcmp.c23
-rw-r--r--libft/src/str/ft_strcount.c24
-rw-r--r--libft/src/str/ft_strcpy.c18
-rw-r--r--libft/src/str/ft_strcspn.c23
-rw-r--r--libft/src/str/ft_strdel.c18
-rw-r--r--libft/src/str/ft_strdup.c22
-rw-r--r--libft/src/str/ft_strequ.c20
-rw-r--r--libft/src/str/ft_striter.c21
-rw-r--r--libft/src/str/ft_striteri.c27
-rw-r--r--libft/src/str/ft_strjoin.c25
-rw-r--r--libft/src/str/ft_strjoin3.c36
-rw-r--r--libft/src/str/ft_strjoinf.c42
-rw-r--r--libft/src/str/ft_strlcat.c32
-rw-r--r--libft/src/str/ft_strlcpy.c28
-rw-r--r--libft/src/str/ft_strlen.c41
-rw-r--r--libft/src/str/ft_strmap.c34
-rw-r--r--libft/src/str/ft_strmapi.c34
-rw-r--r--libft/src/str/ft_strncasecmp.c26
-rw-r--r--libft/src/str/ft_strncat.c29
-rw-r--r--libft/src/str/ft_strncmp.c26
-rw-r--r--libft/src/str/ft_strncpy.c24
-rw-r--r--libft/src/str/ft_strndup.c23
-rw-r--r--libft/src/str/ft_strnequ.c20
-rw-r--r--libft/src/str/ft_strnew.c18
-rw-r--r--libft/src/str/ft_strnlen.c25