From e7a85b4d9d5c2763aee09ceaf9350febbffc62ec Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 19 Apr 2023 14:49:03 +0000 Subject: [PATCH] change display id '1' -> '001' --- print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.c b/print.c index b43916c..a408521 100644 --- a/print.c +++ b/print.c @@ -19,7 +19,7 @@ static void print(t_data *data, size_t id, char *str) pthread_mutex_unlock(&data->stop_mutex); time = get_time(); pthread_mutex_lock(&print_mutex); - printf("%07zu %3zu %s\n", time, id + 1, str); + printf("%07zu %03zu %s\n", time, id + 1, str); pthread_mutex_unlock(&print_mutex); }