-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminitalk.h
35 lines (31 loc) · 1.31 KB
/
minitalk.h
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
30
31
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gmacias- <gmacias-@student.42barcel> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/25 16:29:46 by gmacias- #+# #+# */
/* Updated: 2022/04/25 16:54:14 by gmacias- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_H
# define MINITALK_H
# include <unistd.h>
# include <stdlib.h>
# include <sys/types.h>
# include <signal.h>
typedef struct s_mini
{
int pid_server;
int pid_client;
} t_mini;
t_mini *client_start(void);
t_mini *server_start(void);
void client_send(t_mini *talk, char *message);
void server_receive(int boolean);
int ft_strlen(char *str);
int ft_atoi(const char *str);
void ft_putstr(char *str);
void ft_putnbr(int num);
#endif