merge
This commit is contained in:
30
libft.h
30
libft.h
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/08 00:12:36 by tmaze #+# #+# */
|
||||
/* Updated: 2018/09/30 17:04:54 by tmaze ### ########.fr */
|
||||
/* Updated: 2018/09/30 17:44:18 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -17,6 +17,27 @@
|
||||
# include <stdlib.h>
|
||||
# include <unistd.h>
|
||||
|
||||
# define FT_RESET "\x1b[0m"
|
||||
# define FT_BOLD "\x1b[1m"
|
||||
|
||||
# define FT_COLOR_BLACK "\x1b[30m"
|
||||
# define FT_COLOR_RED "\x1b[31m"
|
||||
# define FT_COLOR_GREEN "\x1b[32m"
|
||||
# define FT_COLOR_YELLOW "\x1b[33m"
|
||||
# define FT_COLOR_BLUE "\x1b[34m"
|
||||
# define FT_COLOR_MAGENTA "\x1b[35m"
|
||||
# define FT_COLOR_CYAN "\x1b[36m"
|
||||
# define FT_COLOR_WHITE "\x1b[37m"
|
||||
|
||||
# define FT_COLOR_BG_BLACK "\x1b[40m"
|
||||
# define FT_COLOR_BG_RED "\x1b[41m"
|
||||
# define FT_COLOR_BG_GREEN "\x1b[42m"
|
||||
# define FT_COLOR_BG_YELLOW "\x1b[43m"
|
||||
# define FT_COLOR_BG_BLUE "\x1b[44m"
|
||||
# define FT_COLOR_BG_MAGENTA "\x1b[45m"
|
||||
# define FT_COLOR_BG_CYAN "\x1b[46m"
|
||||
# define FT_COLOR_BG_WHITE "\x1b[47m"
|
||||
|
||||
/*
|
||||
** définition type t_list
|
||||
*/
|
||||
@@ -151,4 +172,11 @@ char *ft_strnchr(const char *s, int c, int n);
|
||||
char *ft_strrnchr(const char *s, int c, int n);
|
||||
|
||||
int get_next_line(const int fd, char **line);
|
||||
|
||||
void ft_del_words_tables(char ***word_table);
|
||||
void ft_putstrn(char const *s, size_t nb);
|
||||
size_t ft_nbrlen(int nb);
|
||||
void ft_putstrpad(char *str, size_t size, char pad, char align);
|
||||
void ft_putnbrpad(int nbr, size_t size, char pad, char align);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user