seungwonme / libft

My First C Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libft

The libft project is part of the 42 school curriculum, designed to enhance fundamental C programming skills by implementing a custom C library. The project aims to deepen understanding of basic C programming and involve the direct implementation of standard library functions.

Overview

This library is comprised of the following key components:

  • String and character manipulation functions: ft_strlen, ft_strcpy, ft_strcmp, etc.
  • Memory management functions: ft_calloc, ft_memcpy, ft_memmove etc.
  • Character and string examination functions: ft_isalpha, ft_isdigit, ft_strchr, etc.
  • List manipulation functions: ft_lstnew, ft_lstadd, ft_lstmap, etc.
  • Additional functionality: Any additional functions as required by the project.

Each function has a signature similar to standard library functions and can be extended based on project requirements.

Usage

  1. Clone the project:
git clone https://github.com/seungwonme/libft.git
  1. Navigate to the project directory:
cd libft && rm -rf .git
  1. Compile the library:
make [bonus]
  1. In your project, include the library's header file, and link the library during compilation.
#include "libft.h"

int main(void)
{
    ft_putstr("Hello, libft!\n");
    return 0;
}
  • To clean up object files:
make clean
  • To delete all build files:
make fclean
  • To clean and rebuild the library:
make re

About

My First C Library


Languages

Language:C 96.4%Language:Makefile 3.6%