Skip to content
/ Libft Public

A static library of some useful C functions

Notifications You must be signed in to change notification settings

mwendev/Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Libft

Info

Remake of some useful C functions.

  • Grade: 115/100
  • Keywords: Unix logic
  • Skills: Imperative programming/ Rigor/ Algorithms & AI

How to install and use

  • Clone libft into your project folder
git clone https://github.com/mwendev/Libft.git
  • Run make inside libft folder (make rules: all, clean, fclean, re)
make
  • Include libft.h in the header of your C files
#include <libft.h>
  • compile the library with your C files
gcc (...)(.c files) -o (executable name) ./libft/libft.a -I ./libft/inc

List of functions

Dynamic memory allocation

  • ft_calloc

To work with char

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

To work with string

  • ft_bzero
  • ft_itoa
  • ft_atoi
  • ft_memccpy
  • ft_memchr
  • ft_memcmp
  • ft_memcpy
  • ft_memmove
  • ft_memset
  • ft_split
  • ft_strchr
  • ft_strdup
  • ft_strjoin
  • ft_strlcat
  • ft_strlcpy
  • ft_strlen
  • ft_strmapi
  • ft_strncmp
  • ft_strnstr
  • ft_strrchr
  • ft_strtrim
  • ft_substr

To print on file descriptors

  • ft_putchar_fd
  • ft_putendl_fd
  • ft_putnbr_fd
  • ft_putstr_fd

Singly linked list

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

About

A static library of some useful C functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published