Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.66 KB

README.md

File metadata and controls

50 lines (34 loc) · 2.66 KB

42_cursus_libft---------------------------------------------------

C

Summary---------------------------------------------------

Introduction---------------------------------------------------

The Libft project aims to help you code a C library consisting of common utility functions that you will reuse in your future projects. This will enhance your understanding of low-level programming and familiarize you with useful standard functions.

Mandatory part---------------------------------------------------

Create your own library libft.a that includes the following functions, which are detailed in the project description :

  1. Memory functions (e.g., ft_memset, ft_memcpy)
  2. String manipulation functions (e.g., ft_strlen, ft_strdup)
  3. Character type checking (e.g., ft_isalpha, ft_isdigit)
  4. More complex functions (e.g., ft_substr, ft_strjoin)

Bonus part---------------------------------------------------

  1. ft_lstnew: Creates a new list.
  2. ft_lstadd_front: Adds an element at the beginning of a list.
  3. ft_lstsize: Counts the elements of a list.
  4. ft_lstlast: Returns the last element of a list.

Feedback---------------------------------------------------

The libft is a continuation of what was done during the piscine. Consequently, it is not particularly difficult to implement. I strongly suggest doing the bonus tasks, which provide a simple first approach to linked lists, and more generally to data structures, concepts that will prove useful later on.