Lilien86 / 42-libft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lib42

The libft project at 42 School involves creating a library of basic functions, often found in the standard libraries of the C language, as well as some functions specific to the educational environment at 42.

Fonctions

  • isalpha

  • isdigit

  • isalnum

  • isascii

  • isprint

  • strlen

  • memset

  • bzero

  • memcpy

  • memmove

  • strlcpy

  • strlcat

  • toupper

  • tolower

  • strchr

  • strrchr

  • strncmp

  • memchr

  • memcmp

  • strnstr

  • atoi

  • calloc

  • strdup

  • ft_substr

  • ft_strjoin

  • ft_strtrim

  • ft_split

  • ft_itoa

  • ft_strmapi

  • ft_striteri

  • ft_putchar_fd

  • ft_putstr_fd

  • ft_putendl_fd

  • ft_putnbr_fd

Bonus Functions

  • ft_lstnew
  • ft_lstadd_front
  • ft_lstsize
  • ft_lstlast
  • ft_lstadd_back
  • ft_lstdelone
  • ft_lstclear
  • ft_lstiter
  • ft_lstmap

and more

  • ft_atoi_base
  • ft_list_remove_if
  • ft_strcpy_map
  • ft_strlen_map
  • ft_strcpy_map
  • ft_atol
  • ft_free_list

Installation

To integrate the libft library into your project, follow these steps:

  1. Clone this repository to your local machine.
    git clone https://github.com/Lilien86/42-Libft
    cd lib42
    make
    
    make clean
    
    make fclean
    
    make re

Using the Functions

Using the Functions

To compile your program with the libft library, follow these steps:

  1. Ensure that your source file includes the header file libft.h.
    #include "libft.h"
  2. Compile the program with the libft.a library.
    gcc -o mon_programme mon_programme.c -L. -lft

About


Languages

Language:C 97.3%Language:Makefile 2.7%