42-archive/42-piscine-c/d10/ex09/srcs/ft_opp.c
2016-08-25 20:50:28 +02:00

36 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_opp.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/12 12:17:01 by jhalford #+# #+# */
/* Updated: 2016/08/12 16:26:17 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
int ft_div(int a, int b)
{
return (a / b);
}
int ft_add(int a, int b)
{
return (a + b);
}
int ft_sub(int a, int b)
{
return (a - b);
}
int ft_mul(int a, int b)
{
return (a * b);
}
int ft_mod(int a, int b)
{
return (a % b);
}