-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmini_talk_bonus.h
36 lines (32 loc) · 1.34 KB
/
mini_talk_bonus.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
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mini_talk_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmeier <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/03 12:39:08 by mmeier #+# #+# */
/* Updated: 2024/05/08 14:21:47 by mmeier ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINI_TALK_BONUS_H
# define MINI_TALK_BONUS_H
# include "./libft/libft.h"
# include <signal.h>
typedef struct s_signal
{
int bits;
int bytes;
int int_compl;
char *str;
int position;
int bitmask;
} t_signal;
int not_only_digits(char *str);
int error_message(int code);
pid_t ft_atop(const char *str);
int send_bit(pid_t pid, int bit, int pause_sig);
void init_sig(t_signal *sig);
void bitshift_itb(pid_t pid, int nbr);
void free_and_exit(char **str);
#endif