-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_issign.c
22 lines (20 loc) · 1022 Bytes
/
ft_issign.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_issign.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vpopovyc <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/09 14:23:50 by vpopovyc #+# #+# */
/* Updated: 2017/03/09 14:23:51 by vpopovyc ### ########.fr */
/* */
/* ************************************************************************** */
#include "includes/libft.h"
int ft_issign(int c)
{
if (c == '-')
return (1);
else if (c == '+')
return (2);
return (0);
}