You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A custom C library reimplementing standard functions with additional utilities.
🌟 Overview
Libft is a foundational project for École 42 that involves reimplementing standard C library functions from scratch, along with additional helper functions for lists, memory, and string manipulation.
📜 Functions
🧩 String Manipulation
Function
Description
ft_atoi
Converts string to integer
ft_strlen
Calculates string length
ft_strchr
Finds first occurrence of character
ft_strjoin
Concatenates two strings
ft_split
Splits string using delimiter
ft_substr
Extracts substring
ft_strtrim
Trims characters from start/end
🔢 Memory Operations
Function
Description
ft_bzero
Fills memory with zeros
ft_memcpy
Copies memory area
ft_calloc
Allocates and zero-initializes memory
ft_memmove
Moves memory block safely
📝 Type Checks & Conversions
Function
Description
ft_isalpha
Checks for alphabetic character
ft_isdigit
Checks for digit
ft_itoa
Converts integer to string
ft_toupper
Converts to uppercase
📌 Linked List Utilities
Function
Description
ft_lstnew
Creates new list element
ft_lstadd_back
Adds element to list end
ft_lstsize
Counts list elements
⚙️ Installation
Clone the repository:
git clone https://github.com/hasnasln/my_libft.git
cd libft