42-archive/libft/includes/libft.h
2017-06-15 09:52:36 +02:00

97 lines
2.7 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libft.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/07 13:49:04 by jhalford #+# #+# */
/* Updated: 2017/05/16 17:47:18 by ariard ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LIBFT_H
# define LIBFT_H
# define FT_TRY(a,b) ((a) ? (a) : (b))
# include <string.h>
# include <errno.h>
# include <unistd.h>
# include <stdio.h>
# include <stdlib.h>
# include <time.h>
# 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 "hashtab.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 *pAddressIn, long lSize);
void *ft_realloc(void *data, int size);
#endif