text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   libft.h                                            :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: ewallner <ewallner@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2016/11/04 20:13:07 by ewallner          #+#    #+#             */
  /*   Updated: 2017/04/02 22:37:45 by mhaziza          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #ifndef LIBFT_H
  # define LIBFT_H
  # include <string.h>
  # include <sys/types.h>
  # include <sys/uio.h>
  # include <unistd.h>
  # include <fcntl.h>
  # include <stdlib.h>
  # include <stdint.h>
  # include "ft_print.h"
  # define BUFF_SIZE 10
  # define BASE16 "0123456789ABCDEF"
  # define BASE2	"01"
  # define ANSI_COLOR_RED     "\x1b[31m"
  # define ANSI_COLOR_GREEN   "\x1b[32m"
  # define ANSI_COLOR_YELLOW  "\x1b[33m"
  # define ANSI_COLOR_BLUE    "\x1b[34m"
  # define ANSI_COLOR_MAGENTA "\x1b[35m"
  # define ANSI_COLOR_CYAN    "\x1b[36m"
  # define ANSI_COLOR_RESET   "\x1b[0m"
  
  long		ft_atoli(const char *str);
  void		ft_base(unsigned int i, unsigned int base_length, char *base);
  int			ft_strstrlen(char **str);
  int			get_next_line(const int fd, char **line);
  int			get_next_line_dr(const int fd, char **line);
  void		ft_putchar_fd(char c, int fd);
  int			ft_count_words(char const *s, char c);
  void		ft_putstr_fd(char const *s, int fd);
  void		ft_putendl_fd(char const *s, int fd);
  void		ft_putendl(char const *s);
  void		ft_putchar(char c);
  void		ft_putstr(char const *str);
  int			ft_strlen(char const *s);
  void		ft_putnbr_fd(int n, int fd);
  void		ft_putnbr(int n);
  int			ft_isalpha(int n);
  int			ft_isdigit(int n);
  int			ft_isalnum(int n);
  int			ft_isprint(int n);
  int			ft_isascii(int n);
  int			ft_toupper(int n);
  int			ft_tolower(int n);
  char		*ft_itoa(int n);
  int			ft_atoi(char const *s);
  long long	ft_atoi_long(char const *s);
  void		*ft_memset(void *s, int c, size_t n);
  void		*ft_bzero(void *s, size_t n);
  void		*ft_memalloc(size_t n);
  char		*ft_strnew(size_t n);
  void		*ft_memchr(const void *src, int c, size_t n);
  void		ft_memdel(void **ap);
  int			ft_memcmp(void const *str1, void const *str2, size_t n);
  void		*ft_memmove(void *dst, const void *src, size_t len);
  void		*ft_memcpy(void *dest, void const *src, size_t n);
  char		*ft_strcpy(char *dest, const char *src);
  char		*ft_strcat(char *dest, const char *src);
  char		*ft_strncat(char *dest, const char *src, size_t n);
  size_t		ft_strlcat(char *dest, const char *src, size_t n);
  void		ft_strdel(char **as);
  void		ft_strclr(char *s);
  void		*ft_memccpy(void *dest, void const *src, int c, size_t n);
  char		*ft_strdup(char *s);
  char		*ft_strncpy(char *dest, const char *src, size_t len);
  int			ft_strcmp(const char *s1, const char *s2);
  int			ft_strncmp(const char *s1, const char *s2, size_t n);
  char		*ft_strchr(const char *str, int c);
  char		*ft_strrchr(const char *str, int c);
  char		*ft_strstr(const char *haystack, const char *needle);
  char		*ft_strnstr(const char *haystack, const char *needle, size_t len);
  void		ft_striter(char *s, void (*f)(char*));
  void		ft_striteri(char *s, void (*f)(unsigned int, char *));
  char		*ft_strmap(char const *s, char (*f)(char));
  char		*ft_strmapi(char const *s, char (*f)(unsigned int, char));
  int			ft_strequ(char const *s1, char const *s2);
  int			ft_strnequ(char const *s1, char const *s2, size_t n);
  char		*ft_strsub(char const *s, unsigned int start, size_t len);
  char		*ft_strjoin(char const *s1, char const *s2);
  char		*ft_strtrim(char const *s);
  char		**ft_strsplit(char const *s, char c);
  #endif
  