Projet Libft (42cursus) 2024
- What's this Repo?
- List of Functions
- Technologies
- How to Run
- Find a Bug? Or somenthing need to change?
Libft is an individual project at 42 that requires us to re-create some standard C library functions including some additional ones that can be used later to build a library of useful functions for the rest of the program.
At 42 we're not allowed to use some standard libraries on our projects, so we have to keep growing this library with our own functions as we go farther in the program.
-
ft_isalpha
- checks for an alphabetic character. -
ft_isdigit
- check for a digit (0 through 9). -
ft_isalnum
- checks for an alphanumeric character. -
ft_isascii
- checks whether c fits into the ASCII character set. -
ft_isprint
- checks for any printable character. -
ft_toupper
- convert char to uppercase. -
ft_tolower
- convert char to lowercase.
-
ft_strlen
- calculate the length of a string. -
ft_memset
- fill memory with a constant byte. -
ft_bzero
- zero a byte string. -
ft_memcpy
- copy memory area. -
ft_memmove
- copy memory area. -
ft_strlcpy
- copy string to a specific size. -
ft_strlcat
- concatenate a string to a specific size. -
ft_strchr
- locate character in a string. -
ft_strrchr
- locate character in a string. -
ft_strncmp
- compare two strings. -
ft_memchr
- scan memory for a character. -
ft_memcmp
- compare memory areas. -
ft_strnstr
- locate a substring in a string. -
ft_strdup
- creates a duplicate for the string passed as a parameter.
-
ft_atoi
- convert a string to an integer. -
ft_calloc
- allocates memory and sets its bytes' values to 0.
-
ft_substr
- returns a substring from a string. -
ft_strjoin
- concatenates two strings. -
ft_strtrim
- trims the beginning and end of a string with a specific set of chars. -
ft_split
- splits a string using a char as parameter. -
ft_itoa
- converts a number into a string. -
ft_strmapi
- applies a function to each character of a string. -
ft_striteri
- applies a function to each character of a string. -
ft_putchar_fd
- output a char to a file descriptor. -
ft_putstr_fd
- output a string to a file descriptor. -
ft_putendl_fd
- output a string to a file descriptor, followed by a new line. -
ft_putnbr_fd
- output a number to a file descriptor.
This Project was made with:
# *************COMMANDS************ #
# run - run compile all the libtest with the your libft and run the all tests
$ make all
# clean - remove the .o and .c files
$ make clean
# fclean - remove the .o and .c files and the .a
$ make fclean
# re - remove all files and remake all
$ make re
# after run one time the the comand all
# you can use compile others files .c using this lib
# and using the function of then.
$ gcc main.c -L . -lft
- Actual Status :
- Result :
- Observations : (null)
Resource | Source |
---|---|
Libft - C Standard Library Rewrite | Website |
Easy Makefile | Website |
Master Memory Management | Medium |
Make-A-Make: Clear the fog around Makefiles | GitHub |
Project | Source | User |
---|---|---|
42's libft with comments | GitHub |
pbie42 |
Tester | Source | User |
---|---|---|
francinette | GitHub |
xicodomingues |
libftTester | GitHub |
Tripouille |
libft_file_checker | GitHub |
Nuno-Jesus |
libft-unit-test | GitHub |
alelievr |
Libftest | GitHub |
jtoty |
libft-war-machine | GitHub |
0x050f |