Git Product home page Git Product logo

libft's Introduction

libft

Description:

libft is a custom C library that replicates essential functions from the standard C library (libc). It is designed to provide a set of utility functions for string manipulation, memory handling, and list operations.

Table of Contents:

  1. Introduction
  2. Usage
  3. File Structure
  4. Building
  5. Bonus Functions
  6. License

Introduction

The libft library aims to provide a comprehensive set of functions commonly used in C programming. It includes standard string manipulation, memory handling, and additional list manipulation functions.

Usage

To use libft in your project, follow these steps:

  1. Clone the repository:

    git clone <repository-url>
  • Include the necessary header file in your source code:
     #include "libft.h"
    
  • Compile your program with the libft.a library:
    gcc your_program.c -L./libft -lft -o your_program
    
  • Run your program:
    ./your_program
    

File Structure

The library is organized into the following files:

CFILES = ft_isalnum.c ft_isascii.c ft_isalpha.c ft_isdigit.c ft_tolower.c \
       ft_toupper.c ft_strlen.c ft_isprint.c ft_memset.c ft_bzero.c \
       ft_memcpy.c ft_memmove.c ft_strncmp.c ft_strlcpy.c ft_strlcat.c \
       ft_atoi.c ft_strchr.c ft_strrchr.c ft_memchr.c ft_memcmp.c \
       ft_strnstr.c ft_calloc.c ft_strdup.c ft_substr.c ft_strjoin.c \
       ft_strtrim.c ft_split.c ft_itoa.c ft_strmapi.c ft_striteri.c \
       ft_putchar_fd.c ft_putstr_fd.c ft_putendl_fd.c ft_putnbr_fd.c

BONUS_CFILES = ft_lstnew_bonus.c ft_lstadd_front_bonus.c ft_lstsize_bonus.c \
             ft_lstlast_bonus.c ft_lstadd_back_bonus.c ft_lstdelone_bonus.c \
             ft_lstclear_bonus.c ft_lstiter_bonus.c ft_lstmap_bonus.c

Building

To build the library, run:

make

This will compile the source files and create the libft.a static library.

Bonus Functions

In addition to the standard functions, libft provides bonus functions for linked list manipulation. These functions are compiled into the libft.a library.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Make sure to replace `<repository-url>` with the actual URL of your repository. Feel free to customize the content further based on your specific project details.

libft's People

Contributors

ismailco avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.