-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_flagge_rino.c
29 lines (27 loc) · 1.18 KB
/
ft_flagge_rino.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_flagge_rino.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ohachim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/27 21:52:38 by ohachim #+# #+# */
/* Updated: 2019/03/27 21:52:42 by ohachim ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_flagge_rino(t_rem *rems, char c, char b)
{
if (c == '+')
rems->fg[0] = '+';
if (c == '-')
rems->fg[1] = '-';
if (c == '.')
rems->fg[2] = '.';
if (c == '#')
rems->fg[3] = '#';
if (c == ' ')
rems->fg[4] = ' ';
if (c == '0' && (b < '0' || b > '9'))
rems->fg[5] = '0';
}