-
Notifications
You must be signed in to change notification settings - Fork 0
/
minitalk.h
37 lines (28 loc) · 1.27 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
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yamzil <yamzil@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/27 01:22:24 by yamzil #+# #+# */
/* Updated: 2022/01/17 19:38:03 by yamzil ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_H
# define MINITALK_H
# include <signal.h>
# include <unistd.h>
# include <stdlib.h>
# include <stdio.h>
// CLIENT //
void ft_send_sign(char c, pid_t pid);
void ft_send_string(char *str, pid_t pid);
// SERVER //
int ft_power(int nb, int power);
void ft_binary(char *str);
void ft_get_bit(int signum);
// UTILS //
void ft_putendl_fd(char *s, int fd);
void ft_putchar(char c);
#endif