Libft

Libft - Custom Static C Library

This repository contains a custom static library wich provdes various utility functions for string manipulation, memory management, character handling, file operations, and linked list implementations in C.

Usage

  1. Clone the Repository:

    Clone the libft repository into your project directory.

    git clone https://github.com/dracudev/Libft.git
    
  2. Compile libft

    To compile libft, navigate into the libft directory and run make. This will compile all the source files and create the libft.a library file.

    cd libft
    make
    
  3. Link libft with Your Project:

    To use libft in your own project, include the header file libft.h in your source files, and link your project with libft.a.

    #include "libft.h"
    

    When compiling your project, ensure to link with libft.a. For example:

    gcc -o my_program my_program.c -L. -lft -I.
    
  4. Additional Makefile Commands:


Function Index

Character Handling String Manipulation Memory Management File Operations Linked List
ft_isalpha ft_strlen ft_memset ft_putchar_fd ft_lstnew
ft_isdigit ft_strlcpy ft_bzero ft_putstr_fd ft_lstadd_front
ft_isalnum ft_strlcat ft_memcpy ft_putendl_fd ft_lstsize
ft_isascii ft_strchr ft_memmove ft_putnbr_fd ft_lstlast
ft_isprint ft_strrchr ft_memchr ft_printf ft_lstadd_back
ft_toupper ft_strnstr ft_memcmp get_next_line ft_lstdelone
ft_tolower ft_strncmp ft_calloc   ft_lstclear
  ft_strdup     ft_lstiter
  ft_atoi     ft_lstmap
  ft_substr      
  ft_strjoin      
  ft_strtrim      
  ft_split      
  ft_itoa      
  ft_strmapi      
  ft_striteri      


Character Handling

ft_isalpha.c

ft_isdigit.c

ft_isalnum.c

ft_isascii.c

ft_isprint.c

ft_toupper.c

ft_tolower.c

String Manipulation

ft_strchr.c

ft_strrchr.c

ft_strlen.c

ft_strncmp.c

ft_strlcpy.c

ft_strlcat.c

ft_strnstr.c

ft_strdup.c

ft_atoi.c

ft_substr.c

ft_strjoin.c

ft_strtrim.c

ft_split.c

ft_itoa.c

ft_strmapi.c

ft_striteri.c

Memory Management

ft_memset.c

ft_bzero.c

ft_memcpy.c

ft_memmove.c

ft_memchr.c

ft_memcmp.c

ft_calloc.c

File Operations

ft_putchar_fd.c

ft_putstr_fd.c

ft_putendl_fd.c

ft_putnbr_fd.c

ft_printf.c


get_next_line.c


Linked List

ft_lstnew.c

ft_lstadd_front.c

ft_lstsize.c

ft_lstlast.c

ft_lstadd_back.c

ft_lstdelone.c

ft_lstclear.c

ft_lstiter.c

ft_lstmap.c

Theme  Moonwalk