Skip to content

umarsajidm/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft

Libft is the first project at Hive Helsinki (and 42 Network). It aims to build a personal C standard library by reimplementing a selection of libc functions and adding useful utilities for future C projects.

🧩 Overview

This project develops a static C library (libft.a) containing a set of functions that mimic and extend parts of the standard C library. It helps solidify understanding of:

  • Memory allocation and manipulation
  • String handling
  • Linked lists
  • Function pointers
  • Static libraries

📋 Functions Implemented

The library includes (but is not limited to):

Libc Functions

  • ft_strlen, ft_strdup, ft_strchr, ft_strrchr, ft_strncmp, ft_strlcpy, ft_strlcat, ft_strnstr
  • ft_memset, ft_bzero, ft_memcpy, ft_memmove, ft_memchr, ft_memcmp
  • ft_atoi
  • ft_isalpha, ft_isdigit, ft_isalnum, ft_isascii, ft_isprint
  • ft_toupper, ft_tolower
  • ft_calloc

Additional Functions

  • ft_substr, ft_strjoin, ft_strtrim, ft_split, ft_itoa, ft_strmapi, ft_striteri
  • ft_putchar_fd, ft_putstr_fd, ft_putendl_fd, ft_putnbr_fd

Bonus (Linked Lists)

  • ft_lstnew, ft_lstadd_front, ft_lstsize, ft_lstlast, ft_lstadd_back, ft_lstdelone, ft_lstclear, ft_lstiter, ft_lstmap

🛠️ Usage

To compile the library:

make

To use it in your project:

  1. Include the header: #include "libft.h"
  2. Compile with the library: cc main.c -L. -lft

About

Libft is the first project at Hive Helsinki (and 42 Network). It aims to build a personal C standard library by reimplementing a selection of libc functions and adding useful utilities for future C projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors