My custom implementation of standard C library functions, created for 42 school projects. It builds a static library libft.a that can be reused easily in other projects.
- Re-implementation of standard libc functions (
mem*,str*,is*,to*, etc.) - Extra utilities (
ft_substr,ft_split,ft_itoa, linked list helpers) - Norm-compliant and leak-free
git clone git@github.com:grignetta/42_libft.git
cd libft
makeAdd libft as a submodule:
git submodule add git@github.com:grignetta/42_libft.git libft
git submodule update --init --recursiveUpdate libft to the newest version:
git submodule update --remote libftUpdate your project Makefile:
LIBFT_DIR := ./libft
LIBFT := $(LIBFT_DIR)/libft.a
INCS := -I$(LIBFT_DIR)
$(LIBFT):
$(MAKE) -C $(LIBFT_DIR) allThen link with $(LIBFT).