Updates...
This commit is contained in:
parent
43480c35e4
commit
a192af9ad4
12 changed files with 1836 additions and 1787 deletions
|
|
@ -1 +0,0 @@
|
|||
use flake
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2023/11/03 13:20:01 by maiboyer #+# #+# #
|
||||
# Updated: 2024/04/28 20:00:43 by maiboyer ### ########.fr #
|
||||
# Updated: 2024/05/01 20:31:58 by maiboyer ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
|
|
@ -52,23 +52,19 @@ all: $(NAME)
|
|||
$(NAME): $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
@printf \\n$(COL_GRAY)Building\ Output\ $(COL_WHITE)$(COL_BOLD)%-28s$(COL_RESET)\ \
|
||||
$(NAME)
|
||||
@echo -e "$(COL_GRAY) Linking\t$(COL_GREEN)$(TARGET)$(COL_RESET)"
|
||||
@#$(CC) $(INCLUDES) $(OBJ) $(CFLAGS) -o $(NAME)
|
||||
@ar rcs $(BUILD_DIR)/$(NAME) $(OBJ)
|
||||
@printf $(COL_GREEN)done$(COL_RESET)\\n
|
||||
|
||||
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c
|
||||
@mkdir -p $(dir $@)
|
||||
@printf $(COL_GRAY)Building\ $(COL_BOLD)$(COL_WHITE)%-50s\ $(LIB_NAME)$<
|
||||
@echo -e "$(COL_GRAY) Building\t$(COL_GREEN)$<$(COL_RESET)"
|
||||
@$(CC) $(CFLAGS) $(WERROR) $(INCLUDES) -c $< -o $@
|
||||
@printf $(COL_RESET)$(COL_GREEN)done$(COL_RESET)\\n
|
||||
|
||||
$(BUILD_DIR)/%.o: $(GENERIC_DIR)/%.c
|
||||
@mkdir -p $(dir $@)
|
||||
@printf $(COL_GRAY)Building\ $(COL_BOLD)$(COL_WHITE)%-50s\ $(LIB_NAME)$<
|
||||
@echo -e "$(COL_GRAY) Building\t$(COL_GREEN)$<$(COL_RESET)"
|
||||
@$(CC) $(CFLAGS) $(WERROR) $(INCLUDES) -c $< -o $@
|
||||
@printf $(COL_RESET)$(COL_GREEN)done$(COL_RESET)\\n
|
||||
|
||||
clean:
|
||||
@- $(foreach LIB,$(LIBS), \
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/08 12:45:06 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/04/28 19:42:10 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/01 20:29:59 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -37,10 +37,10 @@ static void me_inner(t_u64 nb, t_str out, t_usize *idx)
|
|||
void me_putnbr_fd(t_i32 n, t_file file)
|
||||
{
|
||||
t_usize idx;
|
||||
t_u64 nb;
|
||||
t_i64 nb;
|
||||
char out[15];
|
||||
|
||||
nb = (t_u64)n;
|
||||
nb = (t_i64)n;
|
||||
idx = 0;
|
||||
if (nb < 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/04 17:29:13 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/04/28 19:42:46 by maiboyer ### ########.fr */
|
||||
/* Updated: 2024/05/01 20:30:38 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
char *str_find_rev_chr(t_const_str str, char chr)
|
||||
{
|
||||
t_usize index;
|
||||
t_isize index;
|
||||
|
||||
if (str == NULL)
|
||||
return (NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue