35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* do_op.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2016/08/08 15:30:37 by jhalford #+# #+# */
|
|
/* Updated: 2016/08/12 16:29:35 by jhalford ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef DO_OP_H
|
|
# define DO_OP_H
|
|
|
|
# include <unistd.h>
|
|
|
|
typedef int (*t_function)(int, int);
|
|
typedef struct s_opp
|
|
{
|
|
char *c;
|
|
t_function func;
|
|
} t_opp;
|
|
void ft_putchar(char c);
|
|
void ft_putstr(char *str);
|
|
void ft_putnbr(int nb);
|
|
int ft_add(int a, int b);
|
|
int ft_sub(int a, int b);
|
|
int ft_mul(int a, int b);
|
|
int ft_div(int a, int b);
|
|
int ft_mod(int a, int b);
|
|
int ft_usage(int a, int b);
|
|
int ft_atoi(char *str);
|
|
|
|
#endif
|