Skip to content

luis-ffe/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Insight

C programming can be very tedious when one doesn’t have access to the highly useful standard functions. This project is about understanding the way these functions work, implementing and learning to use them. Your will create your own library. It will be helpful since you will use it in your next C school assignments

HOW TO USE

Clone or download the project.

To use, include the header

Run make inside the project folder.

#include "libft.h"

In case your project and libft are in different folders provide the correct path in the header include.

MAKEFILE RULES

make - Compile libft mandatory files.

make bonus - Compile libft bonus files.

make all - Compiles all previous parts.

make clean - Delete all .o files.

make fclean - Delete all .o and .a files.

make re - Use rules fclean + all.

Check and manipulate characters:

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

Manipulate 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

Manipulate memory:

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

Manipulate numbers:

  • ft_atoi
  • ft_itoa

Write to file descriptor:

  • ft_putchar_fd
  • ft_putstr_fd
  • ft_putendl_fd
  • ft_putnbr_fd

BONUS

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

To do:

  • Add a description in the .h file explaining in a coment below each function prototype exactly what the function is suposed to do.
  • Importance of programing good practices to keep our work easy to understand, use and manipulate in ways that can help others.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published