diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-30 10:35:23 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-30 10:35:23 +0200 |
| commit | 99f67bde096ad84dad5b41bc779ae2ad2d807e6f (patch) | |
| tree | 282a443477f4d81381a0aa526af1a0aefbf82ae3 /common/common.h | |
| parent | 94d33564ee659d2fd0b084a4b4046e7b69ee0d9b (diff) | |
| download | philosophers-99f67bde096ad84dad5b41bc779ae2ad2d807e6f.tar.gz philosophers-99f67bde096ad84dad5b41bc779ae2ad2d807e6f.tar.bz2 philosophers-99f67bde096ad84dad5b41bc779ae2ad2d807e6f.zip | |
Renaming io_* -> event_*, Changed philo_put with only 1 write call
Diffstat (limited to 'common/common.h')
| -rw-r--r-- | common/common.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/common/common.h b/common/common.h index 0b64e92..cb71172 100644 --- a/common/common.h +++ b/common/common.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/08 22:58:35 by cacharle #+# #+# */ -/* Updated: 2020/09/30 08:40:38 by cacharle ### ########.fr */ +/* Updated: 2020/09/30 10:15:10 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -43,22 +43,23 @@ typedef struct typedef void *(*t_routine)(void *arg); /* -** common.c +** args.c */ bool parse_args(t_philo_args *args, int argc, char **argv); -void philo_put(size_t id, t_philo_event event); /* ** helper.c */ long int h_atou_strict(char *s); -size_t h_strlen(char *s); -void h_putnbr(unsigned long num); -void h_putchar(char c); -void h_putstr(char *s); t_time h_time_now(void); + +/* +** io.c +*/ + +void philo_put(size_t id, t_philo_event event); int h_err(int ret, const char *format, char *str); #endif |
