Skip to content

Code a library of common functions in C that you can use for your next projects.

Notifications You must be signed in to change notification settings

FlorentBelotti/42_cursus_libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Code a library of common functions in C that you can use for your next projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published