Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libft - November 2025

My custom C function library for 42.

Authors

Functions

Character Functions

Memory Functions

  • ft_bzero - Sets a memory area to zero
  • ft_calloc - Allocates and initializes a memory area
  • ft_memchr - Searches for a character in a memory area
  • ft_memcmp - Compares two memory areas
  • ft_memcpy - Copies a memory area
  • ft_memmove - Moves a memory area (handles overlapping)
  • ft_memset - Fills a memory area with a character

String Functions

  • ft_strchr - Finds the first occurrence of a character
  • ft_strdup - Duplicates a string
  • ft_striteri - Applies a function to each character with its index
  • ft_strjoin - Concatenates two strings
  • ft_strlcat - Safely concatenates two strings
  • ft_strlcpy - Safely copies a string
  • ft_strlen - Calculates the length of a string
  • ft_strmapi - Applies a function to each character and creates a new string
  • ft_strncmp - Compares two strings up to n characters
  • ft_strnstr - Searches for a substring within a string
  • ft_strrchr - Finds the last occurrence of a character
  • ft_strtrim - Removes specified characters from the start and end
  • ft_substr - Extracts a substring
  • ft_split - Splits a string into an array using a delimiter

Output Functions

Conversion Functions

  • ft_atoi - Converts a string to an integer
  • ft_itoa - Converts an integer to a string

Linked List Functions (Bonus)

Running Tests

To run tests, run the following command

  make fclean bonus

Disclaimer

⚠️ IMPORTANT — Educational use only:

  • Do not copy this code for assessed work in 42 or other courses.
  • Use this repository for study and reference only.

Feedback

If you have any feedback, please reach out to us at my discord ! <3

About

libft - Milestone 0 - 42 CC

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages