Skip to content

Commit bb24993

Browse files
committed
update: libft is now included internally for the library, therefore, it cannot be seen externally but their functions can still be used
1 parent 76fbb5f commit bb24993

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ #
77
# +#+#+#+#+#+ +#+ #
88
# Created: 2024/10/29 19:07:42 by sede-san #+# #+# #
9-
# Updated: 2025/08/25 16:58:29 by sede-san ### ########.fr #
9+
# Updated: 2025/08/26 00:27:39 by sede-san ### ########.fr #
1010
# #
1111
# **************************************************************************** #
1212

@@ -91,7 +91,8 @@ all: libft $(NAME)
9191
# Compile project
9292
$(NAME): $(OBJS)
9393
@echo "$(YELLOW)$(EMOJI_BOX) Linking...$(RESET)"
94-
ar rcs $(NAME) $(OBJS) $(LIBFT_BIN)
94+
@cp $(LIBFT_BIN) $(NAME)
95+
ar rcs $(NAME) $(OBJS)
9596
@echo "$(GREEN)$(EMOJI_CHECK) Linked.$(RESET)"
9697

9798
# Clean object files

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
> The purpose of this project is to recode C's original function printf().
3434
35-
This library reimplements the core functionality of the standard `printf()` function, integrating it into the [`libft`](https://github.com/sdevsantiago/Libft) library.
35+
This library reimplements the core functionality of the standard `printf()` function.
3636

3737
**Features:**
3838
- **Full variadic argument support**: handles variable number of arguments using `va_list`

include/ft_printf.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@
66
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2024/10/29 18:21:23 by sede-san #+# #+# */
9-
/* Updated: 2025/08/25 03:17:19 by sede-san ### ########.fr */
9+
/* Updated: 2025/08/26 00:28:36 by sede-san ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

1313
#ifndef FT_PRINTF_H
1414
# define FT_PRINTF_H
1515

16-
# include "libft.h"
17-
# include <stdarg.h>
18-
# include <stdint.h>
19-
2016
// ft_printf.c
2117
int ft_printf(char const *format, ...);
2218

include/ft_printf_int.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2025/08/25 02:55:58 by sede-san #+# #+# */
9-
/* Updated: 2025/08/25 03:38:27 by sede-san ### ########.fr */
9+
/* Updated: 2025/08/26 00:28:56 by sede-san ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

@@ -15,6 +15,7 @@
1515
#ifndef FT_PRINTF_INT_H
1616
# define FT_PRINTF_INT_H
1717

18+
# include "libft.h"
1819
# include <stdint.h>
1920

2021
// ft_printf_putchar.c

0 commit comments

Comments
 (0)