Minishell/libft
root 03b080ed92 intra to gitea 2025-11-15 22:28:42 +00:00
..
include intra to gitea 2025-11-15 22:28:42 +00:00
srcs intra to gitea 2025-11-15 22:28:42 +00:00
Makefile intra to gitea 2025-11-15 22:28:42 +00:00
Readme.md intra to gitea 2025-11-15 22:28:42 +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: