From 32e97bb2da0b9f90c7cc6eff3173734c7243802c Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:28:02 +0200 Subject: [PATCH 01/10] docs(intenal/itoa_base): adding the documentation of itoa_base --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index 5bae8e1..e065e8d 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -34,6 +34,13 @@ typedef struct s_format */ size_t ft_strlen(const char *str); +/** + * @brief Function to convert a number to an other base + * + * @param nbr number to convert + * @param base base to convert in + * @return the string with the number converted + */ char *itoa_base(uint64_t nbr, char *base); int flag_c(va_list args, int fd); From 277895cf965ebc1d5579625529d2daa859fa7b30 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:28:15 +0200 Subject: [PATCH 02/10] docs(intenal/flag_c): adding the documentation of flag_c --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index e065e8d..5114c1a 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -43,6 +43,13 @@ size_t ft_strlen(const char *str); */ char *itoa_base(uint64_t nbr, char *base); +/** + * @brief Function to handle the flag c in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd (always 1) + */ int flag_c(va_list args, int fd); int flag_i(va_list args, int fd); From ca7639db512b87a39b800da69471dd9ccc9c6c0f Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:28:25 +0200 Subject: [PATCH 03/10] docs(intenal/flag_i): adding the documentation of flag_i --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index 5114c1a..c19c1da 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -52,6 +52,13 @@ char *itoa_base(uint64_t nbr, char *base); */ int flag_c(va_list args, int fd); +/** + * @brief Function to handle the flag i in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd + */ int flag_i(va_list args, int fd); int flag_p(va_list args, int fd); From d155c9f9819495a84059811593c8f9b975d7f729 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:28:34 +0200 Subject: [PATCH 04/10] docs(intenal/flag_p): adding the documentation of flag_p --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index c19c1da..8e8cadb 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -61,6 +61,13 @@ int flag_c(va_list args, int fd); */ int flag_i(va_list args, int fd); +/** + * @brief Function to handle the flag p in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd + */ int flag_p(va_list args, int fd); int flag_percent(va_list args, int fd); From f818b0764a24e1e2347fdaf6becf003eb0d857f3 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:29:00 +0200 Subject: [PATCH 05/10] docs(intenal/flag_percent): adding the documentation of flag_percent --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index 8e8cadb..943ec00 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -70,6 +70,13 @@ int flag_i(va_list args, int fd); */ int flag_p(va_list args, int fd); +/** + * @brief Function to handle the flag % in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd (always 1) + */ int flag_percent(va_list args, int fd); int flag_s(va_list args, int fd); From 0385f63d387342c4db411985b6e7749423b0b836 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:29:18 +0200 Subject: [PATCH 06/10] docs(intenal/flag_s): adding the documentation of flag_s --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index 943ec00..4195581 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -79,6 +79,13 @@ int flag_p(va_list args, int fd); */ int flag_percent(va_list args, int fd); +/** + * @brief Function to handle the flag s in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd (always 1) + */ int flag_s(va_list args, int fd); int flag_u(va_list args, int fd); From 30ecc3204f79157cf48518e32518365c142270f7 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:29:25 +0200 Subject: [PATCH 07/10] docs(intenal/flag_u): adding the documentation of flag_u --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index 4195581..f7e91bb 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -88,6 +88,13 @@ int flag_percent(va_list args, int fd); */ int flag_s(va_list args, int fd); +/** + * @brief Function to handle the flag u in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd (always 1) + */ int flag_u(va_list args, int fd); int flag_x(va_list args, int fd); From c982c3615c6117403855a637dd7e68b055627904 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:29:33 +0200 Subject: [PATCH 08/10] docs(intenal/flag_x): adding the documentation of flag_x --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index f7e91bb..5a9f980 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -97,6 +97,13 @@ int flag_s(va_list args, int fd); */ int flag_u(va_list args, int fd); +/** + * @brief Function to handle the flag x in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd (always 1) + */ int flag_x(va_list args, int fd); int flag_x_maj(va_list args, int fd); From 450944a7ca3577ad86717671c734393b25dd1a93 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 17:29:43 +0200 Subject: [PATCH 09/10] docs(intenal/flag_x_maj): adding the documentation of flag_x_maj --- includes/_internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/_internal.h b/includes/_internal.h index 5a9f980..68445a6 100644 --- a/includes/_internal.h +++ b/includes/_internal.h @@ -106,6 +106,13 @@ int flag_u(va_list args, int fd); */ int flag_x(va_list args, int fd); +/** + * @brief Function to handle the flag X in printf's function + * + * @param args list of arguments + * @param fd file descriptor + * @return The number of character write in the fd (always 1) + */ int flag_x_maj(va_list args, int fd); #endif From 7d9716109cc369e58c21a9daf9409b43d4ceb77a Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 27 Sep 2025 00:06:11 +0200 Subject: [PATCH 10/10] core(make/tmux): Adding tmux rules - Using tmux for developpement propose --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e1b5995..87a1129 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/09/18 17:28:18 by rparodi #+# #+# # -# Updated: 2025/09/19 16:07:44 by rparodi ### ########.fr # +# Updated: 2025/09/27 00:04:52 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -14,6 +14,7 @@ # Name NAME = libftprintf.a +PROJECT = printf # Commands CC ?= clang @@ -114,6 +115,16 @@ footer: @printf "$(GOLD) '\"' '\"'$(END)\n" @printf ' $(GREY)The compilation is$(END) $(GOLD)finished$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n' +tmux: + @tmux new-session -d -s $(PROJECT) + @tmux send-keys -t $(PROJECT):0 'vim' C-m + @tmux split-window -h -t $(PROJECT):0 + @tmux resize-pane -t $(PROJECT):0.0 -x 70 + @tmux new-window -t $(PROJECT):1 -n 'lazygit' + @tmux send-keys -t $(PROJECT):1 'lazygit' C-m + @tmux select-window -t $(PROJECT):0 + @tmux attach-session -t $(PROJECT) + clangd: @printf "CompileFlags:\n" > ./.clangd @printf " Add:\n" >> ./.clangd