tiziaco / libft

42 school's project containing some standard C functions recoded from scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Libft

Libft marks the begin of the 42 school's programming curriculum. This project involves the reconstruction of essential standard functions for the C language.

Beyond the surface, Libft is a gateway to the fundamental realms of C programming, offering a profound exploration of concepts such as data types, variable definitions, function implementations, and the art of library development. It lays the groundwork for a comprehensive understanding of the intricate world of C programming, giving a solid foundation for the next projects of the 42's curriculum.

Included functiions

Functions to manipulate characters:

  • ft_isalpha
  • ft_isdigit
  • ft_isalnum
  • ft_isascii
  • ft_isprint
  • ft_toupper
  • ft_tolower

Functions to manipulate strings:

  • ft_strlen
  • ft_strlcpy
  • ft_strlcat
  • ft_strchr
  • ft_strrchr
  • ft_strncmp
  • ft_strnstr
  • ft_substr
  • ft_strjoin
  • ft_strtrim
  • ft_split
  • ft_strmapi
  • ft_striteri

Functions to manipulate memory:

  • ft_calloc
  • ft_memset
  • ft_bzero
  • ft_memcpy
  • ft_memmove
  • ft_memchr
  • ft_memcmp
  • ft_strdup

Functions for numbers:

  • ft_atoi
  • ft_itoa

Functions to write to a file descriptor

  • ft_putchar_fd
  • ft_putstr_fd
  • ft_putendl_fd
  • ft_putnbr_fd

Functions to manipulate lists:

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

Getting Started

Prerequisites

  • Basic C programming knowledge.
  • A C compiler installed on your system (e.g., GCC).

Installation

  1. Clone the repository:

    git clone https://github.com/tiziaco/libft.git
  2. Move to the project's folder:

    cd libft
  3. Compile the library:

    make

Usage

  1. Include Libft into your project's tapestry:

    #include "libft.h"

About

42 school's project containing some standard C functions recoded from scratch


Languages

Language:C 97.3%Language:Makefile 2.7%