Compare commits
10 commits
b9c6df259a
...
7d9716109c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d9716109c | ||
|
|
450944a7ca | ||
|
|
c982c3615c | ||
|
|
30ecc3204f | ||
|
|
0385f63d38 | ||
|
|
f818b0764a | ||
|
|
d155c9f981 | ||
|
|
ca7639db51 | ||
|
|
277895cf96 | ||
|
|
32e97bb2da |
2 changed files with 75 additions and 1 deletions
13
Makefile
13
Makefile
|
|
@ -6,7 +6,7 @@
|
||||||
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2025/09/18 17:28:18 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
|
||||||
NAME = libftprintf.a
|
NAME = libftprintf.a
|
||||||
|
PROJECT = printf
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
CC ?= clang
|
CC ?= clang
|
||||||
|
|
@ -114,6 +115,16 @@ footer:
|
||||||
@printf "$(GOLD) '\"' '\"'$(END)\n"
|
@printf "$(GOLD) '\"' '\"'$(END)\n"
|
||||||
@printf ' $(GREY)The compilation is$(END) $(GOLD)finished$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(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:
|
clangd:
|
||||||
@printf "CompileFlags:\n" > ./.clangd
|
@printf "CompileFlags:\n" > ./.clangd
|
||||||
@printf " Add:\n" >> ./.clangd
|
@printf " Add:\n" >> ./.clangd
|
||||||
|
|
|
||||||
|
|
@ -34,22 +34,85 @@ typedef struct s_format
|
||||||
*/
|
*/
|
||||||
size_t ft_strlen(const char *str);
|
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);
|
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_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_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_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_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_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_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(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);
|
int flag_x_maj(va_list args, int fd);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue