Skip to content

Haimasker/Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

libft

This project was made in accordance with the project of School 21 (Ecole 42).

GitHub code size in bytes Number of lines of code Code language count GitHub top language


Preamble

The purpose of this project is to create own C library that implements original functions from the standard library.

You can see the subject here: Libft.

Main requirements, rules and code style: Norm.


Installation and usage

Makefile compiles given functions into C static library file.

Compiler: gcc

Flags: -Wall -Werror -Wextra


  • Go to the project folder:
$ cd 'path_to_libft'
  • Then typo one of these command:
Command Description
make compiling mandatory part
make bonus compiling mandatory and bonus part
make clean clearing all .o files
make fclean clearing all .o files and library
  • To use compiled project in your code just include library header:
#include "libft.h"
  • While compiling your code add these flags:
-lft -L 'path_to_libft.a' -I 'path_to_libft.h'

Libft functions

Libc functions Additional functions Bonus part
ft_isalpha ft_substr ft_lstnew
ft_isdigit ft_strjoin ft_lstadd_front
ft_isalnum ft_strtrim ft_lstsize
ft_isascii ft_split ft_lstlast
ft_isprint ft_itoa ft_lstadd_back
ft_strlen ft_strmapi ft_lstdelone
ft_memset ft_striteri ft_lstclear
ft_bzero ft_putchar_fd ft_lstiter
ft_memcpy ft_putstr_fd ft_lstmap
ft_memmove ft_putendl_fd
ft_strlcpy ft_putnbr_fd
ft_strlcat
ft_toupper
ft_tolower
ft_strchr
ft_strrchr
ft_strncmp
ft_memchr
ft_memcmp
ft_strnstr
ft_atoi
ft_calloc
ft_strdup

Testing