-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminitalk.h
34 lines (30 loc) · 1.33 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cnathana <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/02/07 15:17:20 by cnathana #+# #+# */
/* Updated: 2014/02/08 15:44:19 by cnathana ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_H
# define MINITALK_H
# include <signal.h>
# include "libft.h"
typedef struct s_c_info
{
char *str;
char c;
int n;
char mask;
int pid;
} t_c_info;
t_c_info *ft_get_client(t_list *c_list, int pid);
void ft_init_client_infos(t_c_info *new_one, struct __siginfo *info);
int ft_existing_pid(t_list *client_list, int pid);
int print_usage(void);
char *straddchar(char *str, char c);
void remove_client(t_list **client_list, int pid);
#endif