-
Notifications
You must be signed in to change notification settings - Fork 1
/
minitalk.h
39 lines (34 loc) · 1.37 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* minitalk.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmanolis <tmanolis@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/08 15:41:26 by tmanolis #+# #+# */
/* Updated: 2021/09/21 14:29:22 by tmanolis ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MINITALK_H
# define MINITALK_H
# include <sys/types.h>
# include <unistd.h>
# include <stdlib.h>
# include <signal.h>
# ifdef __MACH__
# define TIME 150
# elif __APPLE__
# define TIME 200
# elif __linux__
# define TIME 400
# endif
// UTILS SERVER
size_t ft_strlen(const char *str);
void ft_putchar_fd(char c, int fd);
void ft_putstr_fd(char *s, int fd);
void ft_putnbr_fd(int n, int fd);
char *ft_initialize(void);
// UTILS CLIENT
int ft_isdigit(int c);
int ft_atoi(const char *str);
#endif