aboutsummaryrefslogtreecommitdiff
path: root/common/inc
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-10 11:13:54 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-10 11:13:54 +0100
commitef97ae4e1659da4ef1a02505730d2ecf2389e608 (patch)
tree23dcb59d3cd90c8169f52f2086ad626aa49514fa /common/inc
parenteb2cfb574efafcf2c3c6200d1cd2de700ec8ddfb (diff)
downloadphilosophers-ef97ae4e1659da4ef1a02505730d2ecf2389e608.tar.gz
philosophers-ef97ae4e1659da4ef1a02505730d2ecf2389e608.tar.bz2
philosophers-ef97ae4e1659da4ef1a02505730d2ecf2389e608.zip
Refactoring common lib functions to expose only those we need
Diffstat (limited to 'common/inc')
-rw-r--r--common/inc/common.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/common/inc/common.h b/common/inc/common.h
index 56fb284..c6beb0a 100644
--- a/common/inc/common.h
+++ b/common/inc/common.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/08 22:58:35 by cacharle #+# #+# */
-/* Updated: 2021/01/10 10:32:17 by cacharle ### ########.fr */
+/* Updated: 2021/01/10 11:11:23 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -53,12 +53,8 @@ bool parse_args(t_philo_args *args, int argc, char **argv);
** helper.c
*/
-long int h_atou_strict(char *s);
t_time h_time_now(void);
void h_sleep(t_time sleep_time);
-char *h_nbrcpy(char *dst, long long int num);
-char *h_strcpy_end(char *dst, const char *str);
-const char *philo_sem_eat_name(const char *prefix, long int id);
/*
** io.c
@@ -67,6 +63,6 @@ const char *philo_sem_eat_name(const char *prefix, long int id);
void philo_put(
size_t id, t_philo_event event, t_time initial_time);
void philo_put_flush(void);
-int h_err(int ret, const char *format, char *str);
+const char *philo_sem_eat_name(const char *prefix, long int id);
#endif