Skip to content

This project is about coding a C library. It will contain a lot of general purpose functions your programs will rely upon.

Notifications You must be signed in to change notification settings

phspeters/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 libft

💡 About the project

This project is about coding a C library. It will contain a lot of general purpose functions your programs will rely upon.

📝 Requirements

Mandatory part:

The mandatory functions include standard C library functions and other useful utilities, primarily for character, string, and memory manipulation.

Character manipulation functions:

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

String manipulation functions:

  • 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

Memory manipulation functions:

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

String/integer conversion functions:

  • ft_atoi
  • ft_itoa

File descriptor writing functions:

  • ft_putchar_fd
  • ft_putstr_fd
  • ft_putendl_fd
  • ft_putnbr_fd

Bonus part:

Linked list manipulation functions:

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

📋 Testing

To compile, navigate to the project directory and run:

make

This will create a static library (.a file) that can be linked with other programs.

About

This project is about coding a C library. It will contain a lot of general purpose functions your programs will rely upon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published