-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminitalk_utils_bonus.h
26 lines (22 loc) · 1.16 KB
/
minitalk_utils_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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk_utils_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ysaito <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/05 13:10:25 by ysaito #+# #+# */
/* Updated: 2021/11/06 21:45:49 by ysaito ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_UTILS_BONUS_H
# define MINITALK_UTILS_BONUS_H
# define BUF_SIZE 1024
# define CHAR_BIT_INDEX 7
# include <signal.h>
void init_sigaction(
struct sigaction *act,
const int flags,
void (*handler)(int, siginfo_t *, void *));
void put_error_and_exit(char *putstr);
#endif