fix printf include
This commit is contained in:
9
Makefile
9
Makefile
@ -6,7 +6,7 @@
|
|||||||
# By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ #
|
# By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||||
# +#+#+#+#+#+ +#+ #
|
# +#+#+#+#+#+ +#+ #
|
||||||
# Created: 2023/11/01 11:03:22 by adjoly #+# #+# #
|
# Created: 2023/11/01 11:03:22 by adjoly #+# #+# #
|
||||||
# Updated: 2024/02/04 15:15:14 by adjoly ### ########.fr #
|
# Updated: 2024/02/08 16:49:00 by adjoly ### ########.fr #
|
||||||
# #
|
# #
|
||||||
# **************************************************************************** #
|
# **************************************************************************** #
|
||||||
|
|
||||||
@ -62,6 +62,11 @@ SRCS = is/ft_isalnum.c \
|
|||||||
str/ft_substr.c \
|
str/ft_substr.c \
|
||||||
str/ft_tolower.c \
|
str/ft_tolower.c \
|
||||||
str/ft_toupper.c \
|
str/ft_toupper.c \
|
||||||
|
print/printf/ft_printf.c \
|
||||||
|
print/printf/ft_putchar.c \
|
||||||
|
print/printf/ft_putnbrbase.c \
|
||||||
|
print/printf/ft_putnbr.c \
|
||||||
|
print/printf/ft_putstr.c \
|
||||||
|
|
||||||
OBJS = $(SRCS:.c=.o)
|
OBJS = $(SRCS:.c=.o)
|
||||||
|
|
||||||
@ -75,7 +80,7 @@ LIB = print/printf/libftprintf.a \
|
|||||||
$(NAME): $(OBJS)
|
$(NAME): $(OBJS)
|
||||||
make -C io/get_next_line/
|
make -C io/get_next_line/
|
||||||
make -C print/printf/
|
make -C print/printf/
|
||||||
ar -rcs $(NAME) $(OBJS)
|
ar -rcs $(NAME) $(OBJS) $(LIB)
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(FLAGS) -I $(HEADERS) $< -c -o $@
|
$(CC) $(FLAGS) -I $(HEADERS) $< -c -o $@
|
||||||
|
12
libft.h
12
libft.h
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2023/11/01 10:06:03 by adjoly #+# #+# */
|
/* Created: 2023/11/01 10:06:03 by adjoly #+# #+# */
|
||||||
/* Updated: 2024/02/04 15:12:48 by adjoly ### ########.fr */
|
/* Updated: 2024/02/08 16:50:59 by adjoly ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
@ -79,4 +79,14 @@ void ft_putnbrbase_fd(int n, char *base, int fd);
|
|||||||
void ft_putnbrbase(int n, char *base);
|
void ft_putnbrbase(int n, char *base);
|
||||||
void ft_putnbr(int n);
|
void ft_putnbr(int n);
|
||||||
|
|
||||||
|
int ft_printf(const char *format, ...);
|
||||||
|
int ft_printconversion(char conversion, va_list args);
|
||||||
|
int ft_putnbrulong(unsigned int n);
|
||||||
|
int ft_putaddr(void *ptr);
|
||||||
|
int ft_putstr_p(char *s);
|
||||||
|
int ft_putnbrbase_p(unsigned long int n, char *base);
|
||||||
|
int ft_putnbrbase_pf(unsigned int n, char *base);
|
||||||
|
int ft_putchar_p(char c);
|
||||||
|
int ft_putnbr_p(int n);
|
||||||
|
size_t ft_strlen(const char *s);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user