From d0c146c2274198814e106b17ea1f9461a1b0b81a Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 15 Nov 2019 16:23:11 +0100 Subject: Linux OPEN_MAX --- libft.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libft.h') diff --git a/libft.h b/libft.h index 1dff1c0..aedf621 100644 --- a/libft.h +++ b/libft.h @@ -6,16 +6,23 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/07 09:45:02 by cacharle #+# #+# */ -/* Updated: 2019/11/05 22:19:15 by cacharle ### ########.fr */ +/* Updated: 2019/11/16 08:12:45 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef LIBFT_H # define LIBFT_H +# include # include +# include # include "get_next_line.h" +# ifdef LINUX +# include +# define OPEN_MAX FOPEN_MAX +# endif + # define TRUE 1 # define FALSE 0 @@ -107,5 +114,6 @@ void ft_lstpop_front(t_list **lst, void (*del)(void *)); char *ft_strjoin_free(char const *s1, char const *s2, int free_nb); char *ft_strjoin_free_snd(char const *s1, char const *s2); +int ft_strcount(char *str, char c); #endif -- cgit