My first own library in C language.
The aim of this project is to code a C library, regrouping usual functions, that we’ll be allowed to use in all our future projects.
To copy the Project files to your local computer to the <your_dir_on_local_computer> folder, run:
$ git clone git@github.com:dbadeev/LIBFT.git <your_dir_on_local_computer>
- ft_bzero
- ft_memset
- ft_memcpy
- ft_memccpy
- ft_memmove
- ft_memdel
- ft_memchr
- ft_memcmp
- ft_memalloc
- ft_memrealloc
- ft_memdel
- ft_strlen
- ft_strdup
- ft_strcpy
- ft_strncpy
- ft_strcat
- ft_strncat
- ft_strchr
- ft_strrchr
- ft_strstr
- ft_strnstr
- ft_strcmp
- ft_strncmp
- ft_atoi
- ft_toupper
- ft_tolower
- ft_isalpha
- ft_isdigit
- ft_isalnum
- ft_isascii
- ft_isprint
- ft_strnew
- ft_strdel
- ft_strclr
- ft_striter
- ft_striteri
- ft_strmap
- ft_strmapi
- ft_strequ
- ft_strnequ
- ft_strsub
- ft_strjoin
- ft_strtrim
- ft_strsplit
- ft_strlcat
- ft_itoa
- ft_putchar
- ft_putstr
- ft_putendl
- ft_putnbr
- ft_putchar_fd
- ft_putstr_fd
- ft_putendl_fd
- ft_putnbr_fd
- ft_lstnew
- ft_lstdelone
- ft_lstdel
- ft_lstadd
- ft_lstiter
- ft_lstmap
- ft_istabeolsp
- ft_lst_elemcpy
- ft_lstdup
- ft_digcount_base
- ft_powint
- ft_swap
More details regarding functions are in **libft.en.pdf** (https://github.com/dbadeev/LIBFT/blob/master/libft.en.pdf)
- to compile libft.a:
$ make
OR
$ make libft
- to delete tmp files after compiling (only libft.a will be remain):
$ make clean
- to delete ALL files after compiling:
$ fclean
- to update the configuration (if you change any filename.c/h):
$ make
- to recompile all files:
$ make re
To use Libft in project:
#include <libft.h>
- compile files with
-I /libft/includes
- compile libft
- link binary with
-L /libft -lft
loram (Dmitry Badeev)