/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* libft.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/07 13:49:04 by jhalford #+# #+# */ /* Updated: 2017/11/01 12:58:06 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef LIBFT_H # define LIBFT_H # define FT_TRY(a,b) ((a) ? (a) : (b)) # include # include # include # include # include # include # include "ft_types.h" # include "error.h" # include "color.h" # include "cliopts.h" # include "rs.h" # include "lst.h" # include "dlst.h" # include "btree.h" # include "str.h" # include "sstr.h" # include "math.h" # include "mytime.h" # include "get_next_line.h" # include "net.h" # include "sys.h" struct s_stos { char *key; char *val; }; struct s_stof { char *key; int (*f)(); }; struct s_itof { int id; int (*f)(); }; int ft_printf(const char *format, ...); int ft_dprintf(int fd, const char *format, ...); int ft_vdprintf(int fd, const char *format, va_list ap); int ft_asprintf(char **ret, const char *format, ...); int ft_vasprintf(char **ret, const char *format, va_list ap); void *ft_malloc(size_t size); void *ft_memset(void *b, int c, size_t len); void ft_bzero(void *s, size_t n); void *ft_memcpy(void *dst, const void *src, size_t n); void *ft_memccpy(void *dst, const void *src, int c, size_t n); void *ft_memmove(void *dst, const void *src, size_t len); void *ft_memchr(const void *s, int c, size_t n); int ft_memcmp(const void *s1, const void *s2, size_t n); void *ft_memalloc(size_t size); void ft_memdel(void **ap); int ft_putchar(int c); int ft_putstr(char const *s); int ft_putendl(char const *s); int ft_putnbr(long n); int ft_putnbr_hex(long n); int ft_error_message(char *message); int ft_putchar_fd(int c, int fd); int ft_putstr_fd(char const *s, int fd); int ft_putendl_fd(char const *s, int fd); int ft_putnbr_fd(long n, int fd); int ft_putnbr_hex_fd(long n, int fd); void *hexdump(void *addr, uint32_t offset, uint32_t size, int swap); void *hexdump_64(void *addr, uint64_t offset, uint64_t size, int swap); void *hexdump_int(void *addr, uint32_t offset, uint32_t size, int swap); void *hexdump_64_int(void *addr, uint64_t offset, uint64_t size, int swap); void *ft_realloc(void *data, int size); #endif