-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_putstr_color.c
22 lines (20 loc) · 1.04 KB
/
ft_putstr_color.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_color.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oadhesiv <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/05 16:33:15 by oadhesiv #+# #+# */
/* Updated: 2019/07/05 16:41:33 by oadhesiv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putstr_color(char *str, t_byte color)
{
ft_putstr("\033[0;");
ft_putnbr(color);
ft_putchar('m');
ft_putstr(str);
ft_putstr("\033[0m");
}