Browse Source

[fix] correct compilation errors.

Moul 3 years ago
parent
commit
1dfe3783f9
2 changed files with 3 additions and 3 deletions
  1. 2 2
      libft.h
  2. 1 1
      src/ft_assign_free_str.c

+ 2 - 2
libft.h

@@ -63,7 +63,7 @@ void				*ft_memalloc(size_t size);
 void				ft_memdel(void **ap);
 char				*ft_strnew(size_t size);
 void				ft_strdel(char **as);
-char				*ft_assign_free_str(char *str, void *(*f)(const char*));
+char				*ft_assign_free_str(char *str, char *(*f)(const char*));
 void				ft_strclr(char *s);
 void				ft_striter(char *s, void (*f)(char *));
 void				ft_striteri(char *s, void (*f)(unsigned int, char *));
@@ -77,7 +77,7 @@ char				*ft_strjoinf(char const *s1, char const *s2, int p);
 char				*ft_strtrim(char const *s);
 char				**ft_strsplit(char const *s, char c);
 int					ft_tabsize(char **tab);
-void				ft_tabrdel(char **tabe);
+void				ft_tabdel(char **tabe);
 char				*ft_itoa(int n);
 char				*ft_itoa_base(int value, int base);
 void				ft_putchar(char c);

+ 1 - 1
src/ft_assign_free_str.c

@@ -18,7 +18,7 @@
 ** return new value
 */
 
-char	*ft_assign_free_str(char *str, void *(*f)(const char*))
+char	*ft_assign_free_str(char *str, char *(*f)(const char*))
 {
 	char	*tmp;