42_cube3D/libftx/libftx.h

46 lines
2.0 KiB
C
Raw Permalink Normal View History

2023-04-26 07:02:44 -04:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libftx.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/26 14:47:54 by cchauvet #+# #+# */
2023-05-03 07:11:04 -04:00
/* Updated: 2023/05/02 13:17:30 by cchauvet ### ########.fr */
2023-04-26 07:02:44 -04:00
/* */
/* ************************************************************************** */
#ifndef LIBFTX_H
# define LIBFTX_H
# include <stdlib.h>
# include <unistd.h>
# include <stdarg.h>
# include "./libft/libft.h"
2023-05-03 07:11:04 -04:00
# include "./extra/extra.h"
2023-04-26 07:02:44 -04:00
2023-05-03 07:11:04 -04:00
size_t ft_tablen(const void **tab);
2023-04-26 07:02:44 -04:00
char *ft_ultoa_base(unsigned long long n, char *base);
int ft_printf(const char *format, ...);
int ft_eprintf(const char *format, ...);
int ft_dprintf(int fd, const char *format, ...);
int ft_dprintf(int fd, const char *format, ...);
char *get_next_line(int fd);
size_t ft_random_generator(size_t start, size_t stop);
void ft_freer_tab_ultimate(size_t len, ...);
void ft_freer_ultimate(size_t len, ...);
char *ft_strgen(char c, size_t len);
2023-05-03 07:11:04 -04:00
int ft_is_in(const char *str, char c);
2023-04-26 07:02:44 -04:00
char **ft_tabrealloc(char **tab, size_t current_size, size_t new_size);
2023-05-03 07:11:04 -04:00
int ft_contain_only_str(const char *str, const char *to_find);
int ft_contain_only(const char *str, char c);
2023-04-26 07:02:44 -04:00
char *ft_strfjoin(char *s1, char *s2);
char *ft_strmerger(size_t arg_len, ...);
int ft_strcmp(const char *s1, const char *s2);
2023-04-26 07:02:44 -04:00
ssize_t ft_strchri(char *str, char c);
char *ft_strndup(const char *src, size_t n);
void ft_swap(void *a, void *b);
void ft_swap_int(int *a, int *b);
void ft_swap_char(char *a, char *b);
#endif