Skip to content

A collection of essential C functions that replicate standard library functions and add useful utilities. It serves as a foundation for future 42 projects.

Notifications You must be signed in to change notification settings

msabr/LIBFT-1337

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft - 42 Network

Overview

This project is the first step in my journey at 42 Network. The goal of Libft is to rebuild essential functions from the C standard library, along with additional utility functions that will be useful throughout the entire curriculum. By implementing these functions, I gain a deeper understanding of low-level programming, memory management, and algorithmic problem-solving.

Project Scope

Libft consists of multiple categories of functions, including:

  • Libc Functions: Rewriting standard library functions such as strlen, strcpy, strcmp, memset, bzero, and more.
  • Memory Management: Implementing functions like malloc, free, and realloc to handle dynamic memory allocation.
  • String Manipulation: Functions for handling and modifying strings efficiently.
  • Linked Lists: Implementing basic linked list structures and operations.
  • Custom Utility Functions: Additional helper functions that facilitate various tasks in future projects.

Learning Outcomes

  • Understanding the inner workings of core C functions.
  • Improving problem-solving skills and debugging capabilities.
  • Gaining a strong foundation for future 42 projects.

Usage

How to Build and Run

  1. Clone the repository:

    git clone https://github.com/msabr/LIBFT-1337
    cd LIBFT-1337
    
  2. Build the mandatory part:

    make
    
  3. Build the bonus part (optional):

    make

This includes linked list functions in libft.a.

Additional commands

  • make clean: remove object files.
  • make fclean: remove the program and object files.
  • make re: rebuild everything.

Project Structure

  • libft.h: function prototypes.
  • ft_*.c: mandatory function sources.
  • ft_*_bonus.c: bonus function sources.
  • Makefile: compilation automation.

About

A collection of essential C functions that replicate standard library functions and add useful utilities. It serves as a foundation for future 42 projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published