https://github.com/osmosx/libft
[libft] project school 42. It is my implementation of some of the Standard C Library functions including some additional ones, to understand what each function does and how it works.
https://github.com/osmosx/libft
42school libft library
Last synced: 6 months ago
JSON representation
[libft] project school 42. It is my implementation of some of the Standard C Library functions including some additional ones, to understand what each function does and how it works.
- Host: GitHub
- URL: https://github.com/osmosx/libft
- Owner: osmosx
- Created: 2021-11-24T15:38:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-23T14:59:21.000Z (about 4 years ago)
- Last Synced: 2025-01-11T19:50:57.121Z (over 1 year ago)
- Topics: 42school, libft, library
- Language: C
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libft
Libft is an individual project at 42 that requieres us to re-create some standard C library functions for future projects, and have a deeper understanding of data structures and basic algorithms. At 42 we are not allowed to use some standard libraries on our projects, so we have to keep growing this libary with our own functions as we go farther in the program.
### Functions from `` library
* [`ft_isascii`](libft/ft_isascii.c) - test for ASCII character.
* [`ft_isalnum`](libft/ft_isalnum.c) - alphanumeric character test.
* [`ft_isalpha`](libft/ft_isalpha.c) - alphabetic character test.
* [`ft_isdigit`](libft/ft_isdigit.c) - decimal-digit character test.
* [`ft_isprint`](libft/ft_isprint.c) - printing character test (space character inclusive).
* [`ft_tolower`](libft/ft_tolower.c) - upper case to lower case letter conversion.
* [`ft_toupper`](libft/ft_toupper.c) - lower case to upper case letter conversion.
### Functions from `` library
* [`ft_atoi`](libft/ft_atoi.c) - convert ASCII string to integer.
* [`ft_calloc`](libft/ft_calloc.c) - memory allocation.
### Functions from `` library
* [`ft_bzero`](libft/ft_bzero.c) - write zeroes to a byte string.
* [`ft_memset`](libft/ft_memset.c) - write a byte to a byte string.
* [`ft_memchr`](libft/ft_memchr.c) - locate byte in byte string.
* [`ft_memcmp`](libft/ft_memcmp.c) - compare byte string.
* [`ft_memmove`](libft/ft_memmove.c) - copy byte string.
* [`ft_memcpy`](libft/ft_memcpy.c) - copy memory area.
### Functions from `` library
* [`ft_strlen`](libft/ft_strlen.c) - find length of string.
* [`ft_strchr`](libft/ft_strchr.c) - locate character in string (first occurrence).
* [`ft_strrchr`](libft/ft_strrchr.c) - locate character in string (last occurence).
* [`ft_strnstr`](libft/ft_strnstr.c) - locate a substring in a string (size-bounded).
* [`ft_strnrcmp`](libft/ft_strnrcmp.c) - reversely compare strings (size-bounded).
* [`ft_strdup`](libft/ft_strdup.c) - save a copy of a string (with malloc).
* [`ft_strlcpy`](libft/ft_strlcpy.c) - size-bounded string copying.
* [`ft_strlcat`](libft/ft_strlcat.c) - size-bounded string concatenation.
### Non-standard functions
* [`ft_putchar_fd`](libft/ft_putchar_fd.c) - output a character to given file.
* [`ft_putstr_fd`](libft/ft_putstr_fd.c) - output string to given file.
* [`ft_putendl_fd`](libft/ft_putendl_fd.c) - output string to given file with newline.
* [`ft_putnbr_fd`](libft/ft_putnbr_fd.c) - output integer to given file.
* [`ft_itoa`](libft/ft_itoa.c) - convert integer to ASCII string.
* [`ft_substr`](libft/ft_substr.c) - extract substring from string.
* [`ft_strtrim`](libft/ft_strtrim.c) - trim beginning and end of string with the specified characters.
* [`ft_strjoin`](libft/ft_strjoin.c) - concatenate two strings into a new string (with malloc).
* [`ft_split`](libft/ft_split.c) - split string, with specified character as delimiter, into an array of strings.
* [`ft_strmapi`](libft/ft_strmapi.c) - create new string from modifying string with specified function.
### Linked list functions
* [`ft_lstnew`](libft/ft_lstnew.c) - create new list.
* [`ft_lstsize`](libft/ft_lstsize.c) - count elements of a list.
* [`ft_lstlast`](libft/ft_lstlast.c) - find last element of list.
* [`ft_lstadd_back`](libft/ft_lstadd_back.c) - add new element at end of list.
* [`ft_lstadd_front`](libft/ft_lstadd_front.c) - add new element at beginning of list.
* [`ft_lstdelone`](libft/ft_lstdelone.c) - delete element from list.
* [`ft_lstclear`](libft/ft_lstclear.c) - delete sequence of elements of list from a starting point.
* [`ft_lstiter`](libft/ft_lstiter.c) - apply function to content of all list's elements.
* [`ft_lstmap`](libft/ft_lstmap.c) - apply function to content of all list's elements into new list.