Cube3d/libft
root 8eea3162d5 Firstcommit 2025-08-25 20:07:37 +00:00
..
include Firstcommit 2025-08-25 20:07:37 +00:00
obj Firstcommit 2025-08-25 20:07:37 +00:00
srcs Firstcommit 2025-08-25 20:07:37 +00:00
Makefile Firstcommit 2025-08-25 20:07:37 +00:00
Readme.md Firstcommit 2025-08-25 20:07:37 +00:00
libft.a Firstcommit 2025-08-25 20:07:37 +00:00

Readme.md

Libft - 42 Project

Description

Libft is the first project at 42 school. The aim is to recreate various standard C library functions, as well as additional functions that will be useful throughout the cursus. This library will be used in most of the future 42 projects.

Functions

Libc Functions

ft_isalphaft_isdigitft_isalnumft_isasciift_isprintft_strlenft_memsetft_bzeroft_memcpyft_memmoveft_strlcpyft_strlcatft_toupperft_tolowerft_strchrft_strrchrft_strncmpft_memchrft_memcmpft_strnstrft_atoift_callocft_strdup

Additional Functions

ft_substrft_strjoinft_strtrimft_splitft_itoaft_strmapift_striterift_putchar_fdft_putstr_fdft_putendl_fdft_putnbr_fd

Bonus Functions

ft_lstnewft_lstadd_frontft_lstsizeft_lstlastft_lstadd_backft_lstdeloneft_lstclearft_lstiterft_lstmap

Getting Started

Prerequisites

  • GCC compiler
  • Make

Usage

  1. Include the header in your source file:
#include "libft.h"

Compilation

  1. Compilation:
make

Cleaning

  • Remove object files:
make clean
  • Remove object files and library:
make fclean
  • Recompile everything:
make re

Testing

This project doesn't come with unit tests, but you can use external testers: