https://github.com/psigfry/libft2
libft
https://github.com/psigfry/libft2
Last synced: over 1 year ago
JSON representation
libft
- Host: GitHub
- URL: https://github.com/psigfry/libft2
- Owner: Psigfry
- Created: 2021-08-06T16:59:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-28T21:26:51.000Z (almost 4 years ago)
- Last Synced: 2025-01-28T20:32:27.083Z (over 1 year ago)
- Language: C
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libft
libft - это Библиотека языка Си, содержащая libc и другие полезные функции. Разработан в рамках учебной программы 42 Силиконовой долины.
## Installation
Clone the repository to a directory.
```
https://github.com/Psigfry/libft2.git
```
Run make to compile the library.
```
cd libft && make && make clean
```
Это скомпилирует библиотеку libft, и вы получите файл libft.a, содержащий все перечисленные функции.
## Libc functions descriptions
| Function | Description |
| -------- | ----------- |
| ft_memset | Fill a byte string with a byte value |
| ft_bzero | Write zeroes to a byte string |
| ft_memcpy | Copy memory area |
| ft_memccpy | Copy string until character found |
| ft_memmove | Copy byte string |
| ft_memchr | Locate byte in byte string |
| ft_memcmp | Compare byte string |
| ft_strlen | Find length of string |
| ft_strdup | Save a copy of a string |
| ft_strcpy | Copy strings |
| ft_strncpy | Copy strings |
| ft_strcat | Concatenate strings |
| ft_strncat | Concatenate strings |
| ft_strlcat | Size-bounded string copying and concatenation |
| ft_strchr | Locate character in string |
| ft_strrchr | Locate character in string |
| ft_strstr | Locate substring in a string |
| ft_strnstr | Locate substring in a string |
| ft_strcmp | Compare strings |
| ft_strncmp | Compare strings |
| ft_atoi | Converts ASCII string to integer |
| ft_isalpha | Alphabetic character test |
| ft_isdigit | Decimal-digital character test |
| ft_isalnum | Alphanumeric character test |
| ft_isascii | Test for ASCII character |
| ft_isprint | Printing character test (space character inclusive) |
| ft_toupper | Lower case to upper case letter conversion |
| ft_tolower | Upper case to lower case letter conversion |
## Bonus functions descriptions
| Function | Description |
| -------- | ----------- |
| ft_lstnew | Allocates and returns "fresh" link |
| ft_lstdelone | Deallocates link's content and address |
| ft_lstdel | Deallocates pointed link's and following link's contents and addresses |
| ft_lstadd | Adds new element at the beginning of the list |
| ft_lstiter | Iterates and applies function to every element of the list |
| ft_lstmap | Iterates and applies function to every element of the list and stores the result of function to new list |
## Extra functions descriptions
| Function | Description |
| -------- | ----------- |
| ft_islower | Checks if a given character is in lowercase |
| ft_isspace | Checks if a given character is a space character |
| ft_isuppper | Checks if a given character is in upppercase |
| ft_lstfold | Applies a particular function passed in its argument to all of the list elements |
| ft_strconcat | Joins the array of strings with the given delimeter |
| get_next_line | Reads one line from the given file descriptor |