27void *
ft_memset(
void *s,
int c,
size_t len);
29void *
ft_memcpy(
void *dest,
const void *src,
size_t n);
30void *
ft_memmove(
void *dst,
const void *src,
size_t len);
31size_t ft_strlcpy(
char *dest,
const char *src,
size_t size);
32size_t ft_strlcat(
char *dest,
const char *src,
size_t len);
37int ft_strncmp(
const char *s1,
const char *s2,
size_t n);
38void *
ft_memchr(
const void *s,
int c,
size_t n);
39int ft_memcmp(
const void *s1,
const void *s2,
size_t n);
40char *
ft_strnstr(
const char *haystack,
const char *needle,
size_t len);
42void *
ft_calloc(
size_t count,
size_t size);
45char *
ft_substr(
char const *s,
unsigned int start,
size_t len);
46char *
ft_strjoin(
char const *s1,
char const *s2);
47char *
ft_strtrim(
char const *s1,
char const *set);
48char **
ft_split(
char const *s,
char c);
50char *
ft_strmapi(
char const *s,
char (*f)(
unsigned int,
char));
51void ft_striteri(
char *s,
void (*f)(
unsigned int,
char*));
void ft_lstadd_front(t_list **lst, t_list *new)
Adds a new element to the front of a linked list. This function takes a pointer to the first element ...
int ft_memcmp(const void *s1, const void *s2, size_t n)
Compares two memory areas byte by byte.
void ft_lstiter(t_list *lst, void(*f)(void *))
Iterates over a linked list and applies a function to each element. This function takes a linked list...
char * ft_strdup(const char *s1)
Duplicates a C string into newly allocated memory.
int ft_isdigit(int c)
Checks whether a character is a decimal digit.
void * ft_memset(void *s, int c, size_t len)
Fills a memory area with a byte value.
void * ft_memcpy(void *dest, const void *src, size_t n)
Copies bytes from source to destination.
char * ft_strrchr(const char *s, int c)
Finds the last occurrence of a character in a string.
void ft_lstadd_back(t_list **lst, t_list *new)
Adds a new element to the end of a linked list. This function takes a pointer to the first element of...
void ft_bzero(void *s, size_t n)
Sets a memory area to zero bytes.
char * ft_strtrim(char const *s1, char const *set)
Trims leading and trailing characters from a set.
void ft_putnbr_fd(int n, int fd)
Writes an integer in decimal format to a file descriptor.
char * ft_strmapi(char const *s, char(*f)(unsigned int, char))
Maps a function over a string into a new allocated string.
void ft_lstclear(t_list **lst, void(*del)(void *))
Clears a linked list. This function takes a pointer to the first element of a linked list and a funct...
char * ft_substr(char const *s, unsigned int start, size_t len)
Extracts a substring from a string.
t_list * ft_lstmap(t_list *lst, void *(*f)(void *), void(*del)(void *))
Creates a new linked list with the results of applying a function to each element of the original lis...
size_t ft_strlen(const char *str)
Returns the length of a null-terminated string.
char * ft_itoa(int n)
Converts an integer to a newly allocated decimal string.
void ft_putchar_fd(char c, int fd)
Writes one character to a file descriptor.
t_list * ft_lstnew(void *content)
Creates a new linked-list node.
char * ft_strjoin(char const *s1, char const *s2)
Concatenates two strings into a newly allocated string.
size_t ft_strlcat(char *dest, const char *src, size_t len)
Appends a string to a bounded destination buffer.
size_t ft_strlcpy(char *dest, const char *src, size_t size)
Copies a string into a bounded destination buffer.
int ft_isalnum(int c)
Checks whether a character is alphanumeric.
int ft_strncmp(const char *s1, const char *s2, size_t n)
Compares two strings up to a maximum number of characters.
int ft_lstsize(t_list *lst)
Counts the number of nodes in a linked list.
char ** ft_split(char const *s, char c)
Splits a string into an array of substrings.
char * ft_strchr(const char *s, int c)
Finds the first occurrence of a character in a string.
int ft_tolower(int c)
Converts an uppercase ASCII letter to lowercase.
int ft_isprint(int c)
Checks whether a character is printable in ASCII.
int ft_isascii(int c)
Checks whether a character value is a valid ASCII byte.
void * ft_memchr(const void *s, int c, size_t n)
Scans a memory area for a byte value.
void ft_lstdelone(t_list *lst, void(*del)(void *))
Deletes and frees a single element from a linked list. This function takes an element from a linked l...
void * ft_memmove(void *dst, const void *src, size_t len)
Copies bytes between potentially overlapping memory areas.
void ft_putstr_fd(char *s, int fd)
Writes a string to a file descriptor.
void ft_striteri(char *s, void(*f)(unsigned int, char *))
Applies a callback to each character of a string in place.
char * ft_strnstr(const char *haystack, const char *needle, size_t len)
Finds a substring within a bounded string region.
void * ft_calloc(size_t count, size_t size)
Allocates and zero-initializes an array.
void ft_putendl_fd(char *s, int fd)
Writes a string followed by a newline to a file descriptor.
t_list * ft_lstlast(t_list *lst)
Returns the last element of a linked list. This function takes a linked list and returns a pointer to...
int ft_toupper(int c)
Converts a lowercase ASCII letter to uppercase.
int ft_atoi(const char *str)
Converts an ASCII string to an int value.