Skip to content

aehabdelouadoud/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft

A custom C library reimplementing essential standard functions, along with additional utilities for string handling, memory management, and linked list operations — developed as part of the 42 Network curriculum.

This project aims to strengthen understanding of low-level programming by recreating key components of the C standard library from scratch.


<<<<<<< HEAD

 Branches

=======

Branches

dev

  • main → Stable, production-ready version.
  • dev → Active development branch for new features and testing.

<<<<<<< HEAD

⚙ Compilation

To build the library, run:

=======

Compilation

To build the library, run:

dev

make

This will generate a static library file:

libft.a

Cleaning and rebuilding:

make clean     # Remove object files
make fclean    # Remove object files + libft.a
make re        # Rebuild everything

<<<<<<< HEAD

 Usage

=======

Usage

dev

You can include libft in your C projects by linking the compiled library:

gcc main.c -L. -lft -o main

Include the header file in your source:

#include "libft.h"

Example:

#include "libft.h"
#include <stdio.h>

int main(void)
{
    char str[] = "Hello, Libft!";
    printf("Length: %zu\n", ft_strlen(str));
    return 0;
}

<<<<<<< HEAD

 Project Structure

=======

Project Structure

dev

.
├── Makefile
├── libft.h
├── ft_*.c
└── libft.a

<<<<<<< HEAD

 Features

=======

Features

dev

  • Memory: ft_memset, ft_bzero, ft_memcpy, ft_calloc, etc.
  • Strings: ft_strlen, ft_strdup, ft_strjoin, ft_split, etc.
  • Characters: ft_isalpha, ft_toupper, etc.
  • Linked Lists: ft_lstnew, ft_lstadd_front, ft_lstmap, etc.

<<<<<<< HEAD

 Author

=======

Author

dev

AIT-EL-HAJ Abdelouadoud 📧 abait-el@student.1337.maGitHub Repository

About

Custom C library of standard functions and utilities — built at 42.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published