Skip to content
/ Libft Public

Libft is a personal C library created as part of the 42 curriculum. It includes re-implemented standard C functions and a few extra utility functions to make coding in C easier. This project helped me get comfortable with low-level programming and memory management.

Notifications You must be signed in to change notification settings

Jaezat/Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft

Libft, is about learning how the standard functions of C programming work, by coding them from scratch and creating our very own library.

Usage

  • make → compile mandatory functions.

Included Functions

Mandatory Functions

The mandatory functions of Libft are either from the standard C library or other useful functions. They are mostly used for character, string, and memory manipulation. These 34 functions must be implemented correctly to get a 100% grade.

Functions to check and manipulate characters:

  • ft_isalpha
  • ft_isdigit
  • ft_isalnum
  • ft_isascii
  • ft_isprint
  • ft_toupper
  • ft_tolower

Functions to manipulate strings:

  • ft_strlen
  • ft_strlcpy
  • ft_strlcat
  • ft_strchr
  • ft_strrchr
  • ft_strncmp
  • ft_strnstr
  • ft_substr
  • ft_strjoin
  • ft_strtrim
  • ft_split
  • ft_strmapi
  • ft_striteri

Functions to manipulate memory:

  • ft_calloc
  • ft_memset
  • ft_bzero
  • ft_memcpy
  • ft_memmove
  • ft_memchr
  • ft_memcmp
  • ft_strdup

Functions for numbers:

  • ft_atoi
  • ft_itoa

Functions to write to a file descriptor:

  • ft_putchar_fd
  • ft_putstr_fd
  • ft_putendl_fd
  • ft_putnbr_fd

Recap

The project involved implementing all the mandatory functions of Libft from scratch, covering key areas such as:

  • String manipulation.
  • Character handling.
  • Number processing.
  • Memory management.
  • Writing to file descriptors.

About

Libft is a personal C library created as part of the 42 curriculum. It includes re-implemented standard C functions and a few extra utility functions to make coding in C easier. This project helped me get comfortable with low-level programming and memory management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published