Skip to content

Libft is the first project at 42 School, aiming to build our own C library for use in upcoming projects.

Notifications You must be signed in to change notification settings

lai-jia-jing/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libft

This project is the first at 42 School, focusing on learning how standard functions work by coding them from scratch and creating our own library. Libft will be used in many future projects at 42 School.

Final score

125%

Usage

make will compile mandatory functions.

make bonus will compile bonus functions.

Mandatory

The functions will be designed to handle character, string, and memory manipulation tasks. Each of these functions will be thoroughly tested using automated tests to ensure their accuracy and reliability.

These are character manipulation functions from <ctype.h>, used for tasks like checking types and converting cases.

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

These are functions for manipulating strings, from <string.h>. They perform various operations such as copying, concatenating, comparing, and searching within 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

These are memory manipulation functions from <stdlib.h>, used for tasks such as allocating, deallocating, and managing memory.

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

These are the functions for handling numbers.

  • ft_atoi
  • ft_itoa

These are the functions for file descriptor operations.

  • ft_putchar_fd
  • ft_putstr_fd
  • ft_putendl_fd
  • ft_putnbr_fd

Bonus

The bonus part added an extra 25% to 100%. These functions are used for manipulating linked lists.

  • ft_lstnew
  • ft_lstadd_front
  • ft_lstsize
  • ft_lstlast
  • ft_lstadd_back
  • ft_lstdelone
  • ft_lstclear
  • ft_lstiter
  • ft_lstmap

About

Libft is the first project at 42 School, aiming to build our own C library for use in upcoming projects.

Topics

Resources

Stars

Watchers

Forks