Skip to content

Commit

Permalink
libft-ext
Browse files Browse the repository at this point in the history
  • Loading branch information
Tat Hoang Nguyen committed Dec 17, 2024
1 parent 8102f74 commit 643e62d
Showing 1 changed file with 11 additions and 54 deletions.
65 changes: 11 additions & 54 deletions libft_ext/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,60 +21,17 @@ At 42 we're not allowed to use some standard libraries on our projects, so we ha

## :bookmark_tabs: List of Fucntions

### Functions from `<ctype.h>`

- [x] [`ft_isalpha`](libft/ft_isalpha.c) - checks for an alphabetic character.
- [x] [`ft_isdigit`](libft/ft_isdigit.c) - check for a digit (0 through 9).
- [x] [`ft_isalnum`](libft/ft_isalnum.c) - checks for an alphanumeric character.
- [x] [`ft_isascii`](libft/ft_isascii.c) - checks whether c fits into the ASCII character set.
- [x] [`ft_isprint`](libft/ft_isprint.c) - checks for any printable character.
- [x] [`ft_toupper`](libft/ft_toupper.c) - convert char to uppercase.
- [x] [`ft_tolower`](libft/ft_tolower.c) - convert char to lowercase.

### Functions from `<string.h>`

- [x] [`ft_strlen`](libft/ft_strlen.c) - calculate the length of a string.
- [x] [`ft_memset`](libft/ft_memset.c) - fill memory with a constant byte.
- [x] [`ft_bzero`](libft/ft_bzero.c) - zero a byte string.
- [x] [`ft_memcpy`](libft/ft_memcpy.c) - copy memory area.
- [x] [`ft_memmove`](libft/ft_memmove.c) - copy memory area.
- [x] [`ft_strlcpy`](libft/ft_strlcpy.c) - copy string to a specific size.
- [x] [`ft_strlcat`](libft/ft_strlcat.c) - concatenate a string to a specific size.
- [x] [`ft_strchr`](libft/ft_strchr.c) - locate character in a string.
- [x] [`ft_strrchr`](libft/ft_strrchr.c) - locate character in a string.
- [x] [`ft_strncmp`](libft/ft_strncmp.c) - compare two strings.
- [x] [`ft_memchr`](libft/ft_memchr.c) - scan memory for a character.
- [x] [`ft_memcmp`](libft/ft_memcmp.c) - compare memory areas.
- [x] [`ft_strnstr`](libft/ft_strnstr.c) - locate a substring in a string.
- [x] [`ft_strdup`](libft/ft_strdup.c) - creates a duplicate for the string passed as a parameter.

### Functions from `<stdlib.h>`
- [x] [`ft_atoi`](libft/ft_atoi.c) - convert a string to an integer.
- [x] [`ft_calloc`](libft/ft_calloc.c) - allocates memory and sets its bytes' values to 0.

### Non-standard functions
- [x] [`ft_substr`](libft/ft_substr.c) - returns a substring from a string.
- [x] [`ft_strjoin`](libft/ft_strjoin.c) - concatenates two strings.
- [x] [`ft_strtrim`](libft/ft_strtrim.c) - trims the beginning and end of a string with a specific set of chars.
- [x] [`ft_split`](libft/ft_split.c) - splits a string using a char as parameter.
- [x] [`ft_itoa`](libft/ft_itoa.c) - converts a number into a string.
- [x] [`ft_strmapi`](libft/ft_strmapi.c) - applies a function to each character of a string.
- [x] [`ft_striteri`](libft/ft_striteri.c) - applies a function to each character of a string.
- [x] [`ft_putchar_fd`](libft/ft_putchar_fd.c) - output a char to a file descriptor.
- [x] [`ft_putstr_fd`](libft/ft_putstr_fd.c) - output a string to a file descriptor.
- [x] [`ft_putendl_fd`](libft/ft_putendl_fd.c) - output a string to a file descriptor, followed by a new line.
- [x] [`ft_putnbr_fd`](libft/ft_putnbr_fd.c) - output a number to a file descriptor.

### Linked list functions

- [x] [`ft_lstnew`](libft/ft_lstnew.c) - creates a new list element.
- [x] [`ft_lstadd_front`](libft/ft_lstadd_front.c) - adds an element at the beginning of a list.
- [x] [`ft_lstsize`](libft/ft_lstsize.c) - counts the number of elements in a list.
- [x] [`ft_lstlast`](libft/ft_lstlast.c) - returns the last element of the list.
- [x] [`ft_lstadd_back`](libft/ft_lstadd_back.c) - adds an element at the end of a list.
- [x] [`ft_lstclear`](libft/ft_lstclear.c) - deletes and free list.
- [x] [`ft_lstiter`](libft/ft_lstiter.c) - applies a function to each element of a list.
- [x] [`ft_lstmap`](libft/ft_lstmap.c) - applies a function to each element of a list.
### Functions of [`is character`](srcs/is)

### Functions of [`linked list`](srcs/lst)

### Functions of [`memory`](srcs/mem)

### Functions of [`put`](srcs/put)

### Functions of [`string`](srcs/str)

### Functions of [`to`](srcs/to)

---

Expand Down

0 comments on commit 643e62d

Please sign in to comment.