Skip to content

noemiepi/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project has been created as part of the 42 curriculum by npillet.

Description

The goal of this project is to create a C library that will be used for future projects.

The bonus consists of coding "nb" additional functions.

Instructions

To compile this code, this command must be used:

make

To add the bonuses:

make bonus

There are two ways to test the functions:

  • either one by one with:
cc -Wall -Werror -Wextra <function_name>.c libft.a
  • or using a main testing each of them at the same time:
cc -Wall -Werror -Wextra libft_main.c libft.a

Functions in the library

Checkers & Converters functions

Function Function
ft_isalpha ft_toupper
ft_isdigit ft_tolower
ft_isalnum ft_atoi
ft_isascii ft_itoa
ft_isprint

String functions

Function Function
ft_strlen ft_strdup
ft_strlcpy ft_substr
ft_strcat ft_strjoin
ft_strchr ft_strtrim
ft_strrchr ft_split
ft_strncmp ft_strmapi
ft_strnstr ft_striteri

Memory functions

Function Function
ft_memset ft_memchr
ft_bzero ft_memcmp
ft_memcpy ft_calloc
ft_memmove

File-descriptor functions

Function
ft_putchar_fd
ft_putstr_fd
ft_putendl_fd
ft_putnbr_fd

Linked-list functions

Function Function
ft_lstnew ft_lstdelone
ft_lstadd_front ft_lstclear
ft_lstsize ft_lstiter
ft_lstlast ft_lstmap
ft_lstadd_back

About

Creating my first library in C

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors