-
Notifications
You must be signed in to change notification settings - Fork 0
/
minitalk.h
47 lines (43 loc) · 1.6 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
38
39
40
41
42
43
44
45
46
47
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gjakobss <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/11 17:03:48 by gjakobss #+# #+# */
/* Updated: 2021/09/11 17:04:55 by gjakobss ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_H
# define MINITALK_H
# include <stdio.h>
# include <stdlib.h>
# include <unistd.h>
# include <signal.h>
typedef struct s_minitalk
{
int index;
unsigned char c;
char msg[4096];
int flag;
int client;
} t_minitalk;
int ft_strlen(const char *str);
void ft_putstr(char *s);
void get_sig(int sig_num);
void roger_that(t_minitalk *info);
void ft_putnbr(int n);
char *ft_strdup(const char *s1);
void convert(unsigned char c, int pid);
void ft_putchar(char c);
char *ft_itoa(int n);
int ft_atoi(const char *str);
void ft_putstr(char *s);
void ft_putstr(char *s);
void ft_bzero(void *s, size_t n);
int ft_strlen(const char *str);
void ft_putchar(char c);
void ft_putnbr(int n);
char *ft_strdup(const char *s1);
#endif