diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/libft_io.h | 16 | ||||
| -rw-r--r-- | include/libft_str.h | 4 | ||||
| -rw-r--r-- | include/libft_util.h | 4 | ||||
| -rw-r--r-- | include/libft_vec.h | 3 |
4 files changed, 16 insertions, 11 deletions
diff --git a/include/libft_io.h b/include/libft_io.h index 418b230..e59d70c 100644 --- a/include/libft_io.h +++ b/include/libft_io.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/31 10:35:43 by cacharle #+# #+# */ -/* Updated: 2020/02/28 12:09:11 by cacharle ### ########.fr */ +/* Updated: 2020/05/09 11:16:36 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,18 +29,18 @@ void ft_putnbr_fd(int n, int fd); char ft_getchar(void); -# ifndef FTNL_BUFFER_SIZE -# define FTNL_BUFFER_SIZE 32 +# ifndef FT_GETLINE_BUFFER_SIZE +# define FT_GETLINE_BUFFER_SIZE 32 # endif -# define FTNL_STATUS_LINE 1 -# define FTNL_STATUS_EOF 0 -# define FTNL_STATUS_ERROR -1 +# define FT_LINE 1 +# define FT_EOF 0 +# define FT_ERROR -1 /* -** get_next_line.c +** getline.c */ -int ft_next_line(int fd, char **line); +int ft_getline(int fd, char **line); #endif diff --git a/include/libft_str.h b/include/libft_str.h index 07a5fe0..83c4428 100644 --- a/include/libft_str.h +++ b/include/libft_str.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/31 10:39:22 by cacharle #+# #+# */ -/* Updated: 2020/05/09 12:29:21 by charles ### ########.fr */ +/* Updated: 2020/05/10 21:05:21 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -64,6 +64,8 @@ int ft_strcount(char *str, char c); char *ft_itoa(int n); int ft_atoi_strict(const char *s); long ft_strtol(const char *s, char **endptr, int base); +float ft_strtof(const char *nptr, char **endptr); +float ft_atof(const char *nptr); int ft_strcasecmp(const char *s1, const char *s2); int ft_strncasecmp(const char *s1, const char *s2, size_t n); size_t ft_strspn(const char *s, const char *charset); diff --git a/include/libft_util.h b/include/libft_util.h index 7a9e056..99e7a00 100644 --- a/include/libft_util.h +++ b/include/libft_util.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/27 17:51:36 by cacharle #+# #+# */ -/* Updated: 2020/02/27 17:52:16 by cacharle ### ########.fr */ +/* Updated: 2020/05/10 21:02:02 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,7 +14,9 @@ # define LIBFT_UTIL_H # include <stdlib.h> +# include <stddef.h> void *ft_split_destroy(char **strs); +size_t ft_split_len(char **split); #endif diff --git a/include/libft_vec.h b/include/libft_vec.h index 8424bd5..a5f22dd 100644 --- a/include/libft_vec.h +++ b/include/libft_vec.h @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 18:57:16 by charles #+# #+# */ -/* Updated: 2020/04/04 15:55:29 by charles ### ########.fr */ +/* Updated: 2020/05/10 21:09:25 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -47,5 +47,6 @@ void ft_veciter(t_ftvec *vec, void (*f)(void *elem)); void ft_vecremove(t_ftvec *vec, size_t i, void (*del)(void *elem)); t_ftvec *ft_vecinsert(t_ftvec *vec, size_t i, void *elem); void ft_vecsort(t_ftvec *vec, t_ftcompar_func cmp); +void *ft_vectobuf32(t_ftvec *vec); #endif |
