aboutsummaryrefslogtreecommitdiff
path: root/common/io.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-05 17:00:51 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-05 17:00:51 +0200
commit47e1a7b4af69e1998182126310e42af83cf214ed (patch)
treeaedb74e78e9fdbd7a6593ea773d47364bd158e61 /common/io.c
parent473cf5d7576744b679b7a504232b5ebd4b5d689f (diff)
downloadphilosophers-47e1a7b4af69e1998182126310e42af83cf214ed.tar.gz
philosophers-47e1a7b4af69e1998182126310e42af83cf214ed.tar.bz2
philosophers-47e1a7b4af69e1998182126310e42af83cf214ed.zip
Norming and destroy on error
Diffstat (limited to 'common/io.c')
-rw-r--r--common/io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/common/io.c b/common/io.c
index 355135a..48bb8cc 100644
--- a/common/io.c
+++ b/common/io.c
@@ -6,13 +6,13 @@
/* By: cacharle <me@cacharle.xyz> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/09/30 10:03:53 by cacharle #+# #+# */
-/* Updated: 2020/10/05 14:27:13 by cacharle ### ########.fr */
+/* Updated: 2020/10/05 15:29:09 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "common.h"
-size_t st_strlen(char *s)
+static size_t st_strlen(char *s)
{
int counter;
@@ -22,7 +22,7 @@ size_t st_strlen(char *s)
return (counter);
}
-static char *st_nbrcpy(char *dst, long long int num)
+static char *st_nbrcpy(char *dst, long long int num)
{
if (num > 9)
dst = st_nbrcpy(dst, num / 10);
@@ -31,7 +31,7 @@ static char *st_nbrcpy(char *dst, long long int num)
return (dst + 1);
}
-static void st_strcat(char *dst, char *str)
+static void st_strcat(char *dst, char *str)
{
while (*dst != '\0')
dst++;
@@ -40,7 +40,7 @@ static void st_strcat(char *dst, char *str)
*dst = '\0';
}
-void philo_put(size_t id, t_philo_event event)
+void philo_put(size_t id, t_philo_event event)
{
static char buf[2048];
@@ -61,7 +61,7 @@ void philo_put(size_t id, t_philo_event event)
write(STDOUT_FILENO, buf, st_strlen(buf));
}
-int h_err(int ret, const char *format, char *str)
+int h_err(int ret, const char *format, char *str)
{
while (*format != '\0')
{